.BI "\fBQGrid\fR ( int n, QWidget * parent = 0, const char * name = 0, WFlags f = 0 )"
.br
.ti -1c
.BI "\fBQGrid\fR ( int n, Orientation orient, QWidget * parent = 0, const char * name = 0, WFlags f = 0 )"
.br
.ti -1c
.BI "void \fBsetSpacing\fR ( int space )"
.br
.in -1c
.SH DESCRIPTION
The QGrid widget provides simple geometry management of its children.
.PP
The grid places its widgets either in columns or in rows depending on its orientation.
.PP
The number of rows \fIor\fR columns is defined in the constructor. All the grid's children will be placed and sized in accordance with their sizeHint() and sizePolicy().
.PP
Use setMargin() to add space around the grid itself, and setSpacing() to add space between the widgets.
.PP
<center>
.ce 1
.B "[Image Omitted]"
.PP
</center>
.PP
See also QVBox, QHBox, QGridLayout, Widget Appearance and Style, and Layout Management.
.SH MEMBER FUNCTION DOCUMENTATION
.SH "QGrid::QGrid ( int n, QWidget * parent = 0, const char * name = 0, WFlags f = 0 )"
Constructs a grid widget with parent \fIparent\fR, called \fIname\fR. \fIn\fR specifies the number of columns. The widget flags \fIf\fR are passed to the QFrame constructor.
.SH "QGrid::QGrid ( int n, Orientation orient, QWidget * parent = 0, const char * name = 0, WFlags f = 0 )"
Constructs a grid widget with parent \fIparent\fR, called \fIname\fR. If \fIorient\fR is Horizontal, \fIn\fR specifies the number of columns. If \fIorient\fR is Vertical, \fIn\fR specifies the number of rows. The widget flags \fIf\fR are passed to the QFrame constructor.
.SH "void QGrid::setSpacing ( int space )"
Sets the spacing between the child widgets to \fIspace\fR.