#include <qapplication.h>
#include <qpushbutton.h>
int main( int argc, char **argv )
{
QApplication a( argc, argv );
QPushButton hello( "Hello world!", 0 );
hello.resize( 100, 30 );
a.setMainWidget( &hello );
hello.show();
return a.exec();
}
将它存为main.cpp在一个目标下,然后运行qmake -project
qmake
nmake
最后按回车就显示,不是内部或外部命令......无法运行...各位能告诉我怎么回事呢..