• 4724阅读
  • 1回复

qt设计师在状态栏不可以加入widget吗? [复制链接]

上一主题 下一主题
离线zhuhehz
 

只看楼主 倒序阅读 楼主  发表于: 2010-09-29
— 本帖被 XChinux 执行加亮操作(2010-09-30) —
请教大家qt设计师在状态栏不可以加入widget(比如标签)吗?谢谢!
离线xtfllbl

只看该作者 1楼 发表于: 2010-09-30
推荐你使用代码,有相关方法的。

void QStatusBar::addWidget ( QWidget * widget, int stretch = 0 )
Adds the given widget to this status bar, reparenting the widget if it isn't already a child of this QStatusBar object. The stretch parameter is used to compute a suitable size for the given widget as the status bar grows and shrinks. The default stretch factor is 0, i.e giving the widget a minimum of space.
The widget is located to the far left of the first permanent widget (see addPermanentWidget()) and may be obscured by temporary messages.
上海欢迎您
快速回复
限100 字节
 
上一个 下一个