菜鸟求助!......has initializer but incomplete type

weixin_38073649 2019-09-19 03:45:40
看了一个范例的代码。在我的机子里试了一下,但是出现了......has initializer but incomplete type的错误,还望大家给个解答,谢谢。代码如下#include <QtCore/QCoreApplication>#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();}错误信息: error: variable `QApplication a' has initializer but incomplete type
...全文
735 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复

476

社区成员

发帖
与我相关
我的任务
社区描述
其他技术讨论专区
其他 技术论坛(原bbs)
社区管理员
  • 其他技术讨论专区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧