最近用QT进行编程,用vc和qt4.0.1
程序如下:
#include <qapplication.h>
#include <qlabel.h>
int main(int argc,char **argv)
{
QApplication app(argc,argv);
QLabel *hello=new QLabel("<font color-blue>Hello <i>Qt!</i>""</font>",0);
app.setMainWidget(hello);
hello->show();
return app.exec();
}
一个很普通的程序,可能是我安转的时候有问题,在编译的时候提示:
D:\program\Cpp3.cpp(5) : error C2512: 'QApplication' : no appropriate default constructor available
诚恳求教各位是什么原因早成的呢,我专门打开qapplication这个文件看了看,没有问题啊?
在此先谢谢各位了!
[ 此贴被fanyu在2005-10-24 11:25重新编辑 ]