• 11049阅读
  • 1回复

【提问】qpushbutton有sizeHint()这成员吗? [复制链接]

上一主题 下一主题
离线cottontang2
 

只看楼主 倒序阅读 楼主  发表于: 2006-03-03
QPushButton b00 = new QPushButton(this);
b00->sizeHint();//这句是做何用的啊?
[ 此贴被XChinux在2006-03-03 11:12重新编辑 ]
离线XChinux

只看该作者 1楼 发表于: 2006-03-03
看Qt Reference,这是最好的老师。

sizeHint : const QSize
This property holds the recommended size for the widget.
If the value of this property is an invalid size, no size is recommended.
The default implementation of sizeHint() returns an invalid size if there is no layout for this widget, and returns the layout's preferred size otherwise.
Access functions:
virtual QSize sizeHint () const
二笔 openSUSE Vim N9 BB10 XChinux@163.com 网易博客 腾讯微博
承接C++/Qt、Qt UI界面、PHP及预算报销系统开发业务
快速回复
限100 字节
 
上一个 下一个