A group box provides a frame, a title and a keyboard shortcut, and displays various other widgets inside itself. The title is on top, the keyboard shortcut moves keyboard focus to one of the group box's child widgets, and the child widgets are usually laid out horizontally (or vertically) inside the frame.
.PP
The simplest way to use it is to create a group box with the desired number of columns (or rows) and orientation, and then just create widgets with the group box as parent.
.PP
It is also possible to change the orientation() and number of columns() after construction, or to ignore all the automatic layout support and manage the layout yourself. You can add 'empty' spaces to the group box with addSpace().
You can change the spacing used by the group box with setInsideMargin() and setInsideSpacing(). To minimize space consumption, you can remove the right, left and bottom edges of the frame with setFlat().
Adds an empty cell at the next free position. If \fIsize\fR is greater than 0, the empty cell takes \fIsize\fR to be its fixed width (if orientation() is Horizontal) or height (if orientation() is Vertical).
Use this method to separate the widgets in the group box or to skip the next free cell. For performance reasons, call this method after calling setColumnLayout() or by changing the TQGroupBox::columns or TQGroupBox::orientation properties. It is generally a good idea to call these methods first (if needed at all), and insert the widgets and spaces afterwards.
Changes the layout of the group box. This function is only useful in combination with the default constructor that does not take any layout information. This function will put all existing children in the new layout. It is not good TQt programming style to call this function after children have been inserted. Sets the number of columns or rows to be \fIstrips\fR, depending on \fIdirection\fR.
If the group box has a check box (see isCheckable()) this signal is emitted when the check box is toggled. \fIon\fR is TRUE if the check box is checked; otherwise it is FALSE.
.SS "Property Documentation"
.SH "Alignment alignment"
This property holds the alignment of the group box title.
.PP
The title is always placed on the upper frame line. The horizontal alignment can be specified by the alignment parameter.
.PP
The alignment is one of the following flags:
.TP
AlignAuto aligns the title according to the language, usually to the left.
Set this property's value with setAlignment() and get this property's value with alignment().
.SH "bool checkable"
This property holds whether the group box has a checkbox in its title.
.PP
If this property is TRUE, the group box has a checkbox. If the checkbox is checked (which is the default), the group box's children are enabled.
.PP
setCheckable() controls whether or not the group box has a checkbox, and isCheckable() controls whether the checkbox is checked or not.
.PP
Set this property's value with setCheckable() and get this property's value with isCheckable().
.SH "bool checked"
This property holds whether the group box's checkbox is checked.
.PP
If the group box has a check box (see isCheckable()), and the check box is checked (see isChecked()), the group box's children are enabled. If the checkbox is unchecked the children are disabled.
.PP
Set this property's value with setChecked() and get this property's value with isChecked().
Usually it is not a good idea to set this property because it is slow (it does a complete layout). It is best to set the number of columns directly in the constructor.
.PP
Set this property's value with setColumns() and get this property's value with columns().
.SH "bool flat"
This property holds whether the group box is painted flat or has a frame.
.PP
By default a group box has a surrounding frame, with the title being placed on the upper frame line. In flat mode the right, left and bottom frame lines are omitted, and only the thin line at the top is drawn.
.PP
See also title.
.PP
Set this property's value with setFlat() and get this property's value with isFlat().
.SH "Orientation orientation"
This property holds the group box's orientation.
.PP
A horizontal group box arranges it's children in columns, while a vertical group box arranges them in rows.
.PP
Usually it is not a good idea to set this property because it is slow (it does a complete layout). It is better to set the orientation directly in the constructor.
.PP
Set this property's value with setOrientation() and get this property's value with orientation().