按要求正确的安装了
QT4.4.2(采用自动下再也安装
MinGW),没有在系统变量中设置路径。在QT4.4.3 command prompt窗口(自动设置了搜索路径)运行hello测试程序出错。什么原因?程序如下
#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();
}
错误窗口如下