bq. Each widget returns a QSizePolicy that describes the horizontal and vertical resizing policy it prefers when being laid out. You can change this for a specific widget by changing its "QWidget::sizePolicy":http://qt-project.org/doc/qt-4.8/qwidget.html#sizePolicy-prop property. QSizePolicy contains two independent "QSizePolicy::Policy":http://qt-project.org/doc/qt-4.8/qsizepolicy.html#Policy-enum values and two stretch factors; one describes the widgets's horizontal size policy, and the other describes its vertical size policy. It also contains a flag to indicate whether the height and width of its preferred size are related.