首页| 论坛| 消息

标题:Qtopia4---QStatusBar
作者:bestvalentin
日期:2008-06-16 11:04
内容:

Qtopia4.2.0,使用designer做个带Menu的MainWindow,自动生成的代码里有QStatusBar,然后编译老是过不去。
这个版本里面总是有很多问题,帮助文档里边明明还有的函数,用到代码里就不行,真是让人苦恼。难道也是3、4版之间的问题?


#1 [bestvalentin 06-16 17:02]
总是遇见如下错误,明明有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]: *** 错误 2
make[1]: Leaving directory `/root/workspace/example'
make: *** 错误 2
#2 [hbsdyang 08-20 09:31]
我的也出现了这个问题,请问有人解决了吗
#3 [闪电侠风行 03-18 09:44]
lz你好,我也出现了这样的问题,不知到你的问题解决了没有,希望能够得到你的帮助,谢谢

回复 发表
主题 版块