标题:错误: 对不完全的类型‘struct QStatusBar’的非法使用
作者:闪电侠风行
日期:2012-03-18 09:55
内容:
ubuntu 11.10 +4.4.3编译器
ui_mainwindow.h: 在成员函数‘void Ui_MainWindow::setupUi(QMainWindow*)’中:
ui_mainwindow.h:81:42: 错误: 对不完全的类型‘struct QStatusBar’的非法使用
/witech/builddir/sdk/qtopiacore/target/include/QtGui/qmainwindow.h:54:7: 错误: ‘struct QStatusBar’的前向声明
ui_mainwindow.h:82:14: 错误: 对不完全的类型‘struct QStatusBar’的非法使用
/witech/builddir/sdk/qtopiacore/target/include/QtGui/qmainwindow.h:54:7: 错误: ‘struct QStatusBar’的前向声明
ui_mainwindow.h:83:17: 错误: ‘class QMainWindow’没有名为‘setStatusBar’的成员
ui_mainwindow.h:84:44: 错误: 对不完全的类型‘struct QDockWidget’的非法使用
/witech/builddir/sdk/qtopiacore/target/include/QtGui/qmainwindow.h:51:7: 错误: ‘struct QDockWidget’的前向声明
ui_mainwindow.h:85:15: 错误: 对不完全的类型‘struct QDockWidget’的非法使用
/witech/builddir/sdk/qtopiacore/target/include/QtGui/qmainwindow.h:51:7: 错误: ‘struct QDockWidget’的前向声明
ui_mainwindow.h:86:15: 错误: 对不完全的类型‘struct QDockWidget’的非法使用
/witech/builddir/sdk/qtopiacore/target/include/QtGui/qmainwindow.h:51:7: 错误: ‘struct QDockWidget’的前向声明
ui_mainwindow.h:87:15: 错误: 对不完全的类型‘struct QDockWidget’的非法使用
/witech/builddir/sdk/qtopiacore/target/include/QtGui/qmainwindow.h:51:7: 错误: ‘struct QDockWidget’的前向声明
ui_mainwindow.h:88:15: 错误: 对不完全的类型‘struct QDockWidget’的非法使用
/witech/builddir/sdk/qtopiacore/target/include/QtGui/qmainwindow.h:51:7: 错误: ‘struct QDockWidget’的前向声明
ui_mainwindow.h:110:15: 错误: 对不完全的类型‘struct QDockWidget’的非法使用
/witech/builddir/sdk/qtopiacore/target/include/QtGui/qmainwindow.h:51:7: 错误: ‘struct QDockWidget’的前向声明
ui_mainwindow.h:111:17: 错误: ‘class QMainWindow’没有名为‘addDockWidget’的成员
make: *** 错误 1
错误中报的struct QStatusBar,struct QDockWidget都是在designer中设计时带的,在程序中没有他的代码。
源文件:
mainwindow.cpp
#include "mainwindow.h"
# ..