Summary: Some of the functions involved in layout management
----------------------------------------------------------
1. void Qwidget::setlayout (Qlayout * layout)
Sets the layout manager for this widget to layout. Set up layout manager for widget layout management
If there already is a layout manager installed the This widget, Qwidget won ' t let you install another. Must first delete the existing layout manager (returned by layout ()) before you can call SetLayout () with the new Layo Ut.
If layout is the layout manger on a different widget, setlayout () would reparent the layout and make it the layout manager For the This widget.
Example:
qvboxlayout *layout = new qvboxlayout; layout-AddWidget (Formwidget); setlayout (layout) ;
An alternative to calling this function is to pass this widget to the layout ' s constructor.
The qwidget would take ownership of layout.
See also layout () and layout Management.
Fourth Chapter layout Management