• 8012阅读
  • 3回复

Qtopia4---QStatusBar [复制链接]

上一主题 下一主题
离线bestvalentin
 
只看楼主 倒序阅读 楼主  发表于: 2008-06-16
— 本帖被 XChinux 执行加亮操作(2008-06-16) —
Qtopia4.2.0,使用designer做个带Menu的MainWindow,自动生成的代码里有QStatusBar,然后编译老是过不去。

这个版本里面总是有很多问题,帮助文档里边明明还有的函数,用到代码里就不行,真是让人苦恼。难道也是3、4版之间的问题?
离线bestvalentin
只看该作者 1楼 发表于: 2008-06-16
总是遇见如下错误,明明有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
离线hbsdyang
只看该作者 2楼 发表于: 2011-08-20
我的也出现了这个问题,请问有人解决了吗
只看该作者 3楼 发表于: 2012-03-18
lz你好,我也出现了这样的问题,不知到你的问题解决了没有,希望能够得到你的帮助,谢谢
有缘相聚在这个论坛
快速回复
限100 字节
 
上一个 下一个