看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