a.setMainWidget( &hello );
hello.show();
return a.exec();
}
in a *.txt and save it as main.cpp
copy the file main.cpp to /usr/bin where the executable file qmake
lived.
then qmake -project
but no *.pro file in the folder /usr/bin.
why?
thank you.
my email:liouxiangbiao@yahoo.com.cn
why do you copy main.cpp to /usr/bin? This directory is supposed to hold binary executive files.
Anyway, ensure you have installed QT, and $QTDIR/bin have been included in shell variable PATH.