首页| 论坛| 消息

回复: 大家帮忙来看看,很诡异的段错误
#6 [leo_yang 06-29 10:13]
没做嵌入式方面的,不过我在Qt4.5的文档里面查到的~
For X11, this function also resizes and moves the main widget according to the -geometry command-line option, so you should set the default geometry (using QWidget::setGeometry()) before calling setMainWidget().
意思是说对于X window,setMainWidget()函数会通过-geometry命令行选项重新调整大小并移动主部件
因此你应该在调用setMainWidget()之前使用QWidget::setGeometry()设置默认的位置。
希望能帮到楼主。另外你可以使用调试模式,看错误具体出在哪里。
#7 回 5楼(bmy001) 的帖子 [q632649116 06-30 18:13]
我改了,,还是不行。。额///而且那段代码在一个qt教程里截的。。。
#8 回 6楼(leo_yang) 的帖子 [bmy001 07-01 22:46]
谢谢,不过我的是qt系统

<< 1 2 >> (2/2)

回复 发表
主题 版块