您的位置:首页 > 编程语言 > Qt开发

QT4的工程到QT5环境下无法运行的一些问题及解决办法

2017-06-28 15:00 447 查看
1、 error: invalid use of incomplete type 'class QPushButton'

解决办法:

The error should come from your .pro file since your are using Qt5 you should include:[code]QT += widgets
Change all instances of
#include <QtGui>
to
#include <QtWidgets>

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐