#include
#include
int main(int argc,char *argv[])
{
QApplication app(argc,argv);
QPushButton b("Hello World!");
b.show();
QObject::connect(&b,SIGNAL(clicked()),&app,SLOT(quit()));
return app.exec();
}
1问:我在Windows上用Qt4.7调试和生成都没有问题。退出QT4.7后,直接点击后提示缺少一系列的dll。这是怎么会事。
2问:我到Linux下调试却无法进行,提示出错127这是怎么会事?
出错提示:
I.../untitled-/../../qtsdk-2010.05/qt/include/QtCore-
I../../qtsdk-2010.05/qt/include/QtGui-I../..qtsdk-2010.05/qt/include
-I.-I../untitled-i.-o helloworld.o../untitled1/helloworld.cpp
make:g++:命令未找到
make:离开目录"/home/lz36779/test/untitled1-build-desktop"
The process"/usr/bin/make"exited with code %2
Error while building project untitled1(target:Desktop)
When executing build step'Make'