Member Function Documentation

Constructs a new top-level QLayout called name, with main
widget parent. parent may not be 0.

The margin is the number of pixels between the edge of the
widget and the managed children. The spacing sets the value of
spacing(), which gives the spacing between the managed widgets. If
spacing is -1 (the default), spacing is set to the value of margin.

There can be only one top-level layout for a widget. It is
returned by QWidget::layout()

bool QLayout::autoAdd () const

Returns TRUE if this layout automatically grabs all new
mainWidget()'s new children and adds them as defined by addItem();
otherwise returns FALSE. This has effect only for top-level
layouts, i.e. layouts that are direct children of their
mainWidget().

void QLayout::deleteAllItems () [protected]

Returns whether this layout can make use of more space than
sizeHint(). A value of Vertical or Horizontal means that it wants
to grow in only one dimension, whereas BothDirections means that
it wants to grow in both dimensions.