自己写的一个小程序,在编译的时候,出现问题,希望高手、bz指点,谢谢
闪电侠风行 2012-03-16 09:57:05 In file included from mainwindow.cpp:2:
ui_mainwindow.h: In member function ‘void Ui_MainWindow::setupUi(QMainWindow*)’:
ui_mainwindow.h:75: error: invalid use of incomplete type ‘struct QDockWidget’
/witech/builddir/sdk/qtopiacore/target/include/QtGui/qmainwindow.h:59: error: forward declaration of ‘struct QDockWidget’
ui_mainwindow.h:76: error: invalid use of incomplete type ‘struct QDockWidget’
/witech/builddir/sdk/qtopiacore/target/include/QtGui/qmainwindow.h:59: error: forward declaration of ‘struct QDockWidget’
ui_mainwindow.h:77: error: invalid use of incomplete type ‘struct QDockWidget’
/witech/builddir/sdk/qtopiacore/target/include/QtGui/qmainwindow.h:59: error: forward declaration of ‘struct QDockWidget’
ui_mainwindow.h:78: error: invalid use of incomplete type ‘struct QDockWidget’
/witech/builddir/sdk/qtopiacore/target/include/QtGui/qmainwindow.h:59: error: forward declaration of ‘struct QDockWidget’
ui_mainwindow.h:79: error: invalid use of incomplete type ‘struct QDockWidget’
/witech/builddir/sdk/qtopiacore/target/include/QtGui/qmainwindow.h:59: error: forward declaration of ‘struct QDockWidget’
ui_mainwindow.h:101: error: invalid use of incomplete type ‘struct QDockWidget’
/witech/builddir/sdk/qtopiacore/target/include/QtGui/qmainwindow.h:59: error: forward declaration of ‘struct QDockWidget’
ui_mainwindow.h:102: error: ‘class QMainWindow’ has no member named ‘addDockWidget’
make: *** [mainwindow.o] 错误 1
在编译的时候出现了这个问题,困扰了我一晚上了,找了很多的资料,不知道怎么解决,希望能够帮忙解决,万分感谢……
由于分数不多,所有只能在这里发贴里