my OS is ubuntuylin 13.04,I download QT 5.1 int http://qt-project.org,
then I use- cmd “chmod 755 ./QT……run”
“./QT…..run”
try to install QT5.1 and finish it work. and I going to make a first QT project.
I edit simple code by VIM, and move the file to a new file directory.(path = /home/jxf/gui)
I use cmd “ cd /home/jxf/gui”
“qmake -project”
and system tell me “ qmake: could not find a Qt installation of ‘ ‘ “…..
~~~~~~~~~~~try again~~~~~~~~~~
now I use the IDE
the question is “can’t find file or directory”(it’s chinese error ,I try to translate,my english is poor………)
code :
#include<QApplication> // <==this line ,IDE tell me “can’t find file or directory”
#include<QLabel>
int main(int argc, char* argv[])
{
QApplication app(argc,argv);
QLabel label = new QLabel(“hello QT!”);
label->show();
return app.exec();
}
what should I do ……
↧