error: forward declaration of 'class QLabel'
2014-02-21 11:41
351 查看
../untitled/finddialog.cpp: In constructor 'FindDialog::FindDialog(QWidget*)':
../untitled/finddialog.cpp:7:45: error: invalid use of incomplete type 'class QLabel'
label = new QLabel(tr("Find &what:"));
^
In file included from ../untitled/finddialog.cpp:2:0:
../untitled/finddialog.h:6:7: error: forward declaration of 'class QLabel'
class QLabel;
^
#include<QtGui>改成
#inlcude<QtWidgets>
Qt官网wiki有说明:http://qt-project.org/wiki/Transition_from_Qt_4.x_to_Qt5
../untitled/finddialog.cpp:7:45: error: invalid use of incomplete type 'class QLabel'
label = new QLabel(tr("Find &what:"));
^
In file included from ../untitled/finddialog.cpp:2:0:
../untitled/finddialog.h:6:7: error: forward declaration of 'class QLabel'
class QLabel;
^
#include<QtGui>改成
#inlcude<QtWidgets>
Qt官网wiki有说明:http://qt-project.org/wiki/Transition_from_Qt_4.x_to_Qt5
相关文章推荐
- PHP新手上路(十)
- PHP新手上路(七)
- PHP新手上路(五)
- JavaScript 新手24条实用建议[TUTS+]
- jquery 新手学习常见问题解决方法
- PHP新手上路(九)
- PHP新手上路(八)
- PHP新手上路(二)
- 谈谈新手如何学习PHP网络编程第1/2页
- PHP新手上路(四)
- PHP新手上路(六)
- PHP新手上路(三)
- javascript新手语法小结
- 新手必看的做站月赚一万再次交流
- 一贴学会PHP 新手入门教程
- Google AdSense新手赚$$$的忠告
- Linux/Unix 新手和专家教程
- linux新手要了解的十个知识点
- linux 每日学一点《linux新手要了解的十个知识点》
- Linux管理员新手易犯的十种错误和解决方法