总是遇见如下错误,明明有QStatusBar的头文件。
mywindow.h: In member function ‘void Ui_MainWindow::setupUi(QMainWindow*)’:
mywindow.h:70: 错误:invalid use of undefined type ‘struct QStatusBar’
../../install/qtopia-opensource-4.2.0/qtopiacore/target/include/QtGui/../../../qt/src/gui/widgets/qmainwindow.h:28: 错误:forward declaration of ‘struct QStatusBar’
mywindow.h:71: 错误:invalid use of undefined type ‘struct QStatusBar’
../../install/qtopia-opensource-4.2.0/qtopiacore/target/include/QtGui/../../../qt/src/gui/widgets/qmainwindow.h:28: 错误:forward declaration of ‘struct QStatusBar’
mywindow.h:72: 错误:‘class QMainWindow’ 没有名为 ‘setStatusBar’ 的成员
make[2]: *** [.obj/release-shared/main.o] 错误 1
make[2]: Leaving directory `/root/workspace/example'
make[1]: *** [all] 错误 2
make[1]: Leaving directory `/root/workspace/example'
make: *** [all] 错误 2