c++ GUI Qt4 的关于forward declaration of "class xxx 的错误"
来源:互联网 发布:中医 数据库 编辑:程序博客网 时间:2024/06/06 01:08
C++ GUI Qt4 23页的程序在编译时出了个错误ubunto终端显示错误如下main.cpp:18:43: error: invalid use of incomplete type ‘class QPushButton’ buttonBox->button(QDialogButtonBox::Ok)->setEnabled(lineEdit->hasAcceptableI ^In file included from /usr/local/Trolltech/Qt-4.8.1/include/QtGui/QDialog:1:0, from main.cpp:2:/usr/local/Trolltech/Qt-4.8.1/include/QtGui/qdialog.h:53:7: note: forward declaration of ‘class QPushButton’ class QPushButton; ^Makefile:213: recipe for target 'main.o' failedmake: *** [main.o] Error 1包含一个头文件#include就可以了!哈哈
阅读全文
0 0
- c++ GUI Qt4 的关于forward declaration of "class xxx 的错误"
- Qt中forward declaration of struct Ui::xxx的解决
- Qt中forward declaration of struct Ui::xxx的解决
- error forward declaration of xxx
- error: forward declaration of 'class QLabel'
- forward declaration of 'struct WebCore:: 错误
- Forward declaration of class cannot have a nested name specifier xcode 升级后cocos2d编译错误
- 解决QT:forward declaration of 'struct Ui::xxx';invalid use of incomplete struct "Ui::Widget" 等莫名奇妙错误
- 解决QT:forward declaration of 'struct Ui::xxx';invalid use of incomplete struct "Ui::Widget" 等莫名奇妙错误
- C系列: 关于implicit declaration of function的warning
- Forward Declaration of a Base Class 什么时候该用
- c++ class forward declaration and invalid use of incomplete type
- 关于Symbian的"crosses initialization of XXX"错误
- c++ class forward declaration demo
- C++的前置申明(forward declaration)
- IOS错误之----警告 Local declaration of 'XXX' hides insta
- C++GUI Qt4读书笔记(1)--QT的基本知识点
- 出现implicit declaration of function 'h1940_latch_control错误的解决方法
- 使用RTL-SDR和Matlab Simulink玩转软件无线电(十八)
- 用python写爬虫,爬取清纯妹子网站
- Spring歪解
- 关于iOS中延迟执行的几种方法
- JVM 的 工作原理,层次结构 以及 GC工作原理
- c++ GUI Qt4 的关于forward declaration of "class xxx 的错误"
- 序列问题
- 12.Scala中的继承:超类的构造、重写字段、重写方法代码实战
- 常用数组扩展
- mysql命令行不用输入用户名和密码的方法
- leetcode:Odd Even Linked List
- 分析if__name__==__main__
- MySQL前缀索引和索引选择性
- Python读写/追加excel文件Demo