首页| 论坛| 消息

标题:Qtopia:helloworld编译错误
作者:hinly
日期:2009-05-13 11:34
内容:

我编译hello程序总是提示错误是怎么回事啊?
#include
#include
int main(int argc,char *argv[])
{
qapplication app(argc,argv);
QLabel hello("Hello world");
hello.show();
return app.exec();
return 0;
}
编译时提示:qapplication was not declared in this scope菜鸟级别的问题,但是不知道怎么解决


#1 [huihui516 05-13 14:22]
qapplication app.().应该改为“QApplication app()
#2 [leonfeng 05-13 16:24]
建议看一下源代码目录下的examples/application 。如果要看它运行时的效果,调用qbuild image就ok了

回复 发表
主题 版块