Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions | ![]() |
The QGridWidget class provides simple geometry management of its children. More...
#include <QGridWidget>
Inherits QFrame.
The QGridWidget class provides simple geometry management of its children.
The grid places its widgets either in columns or in rows depending on its orientation.
The number of rows or columns is defined in the constructor. All the grid's children will be placed and sized in accordance with their sizeHint() and sizePolicy().
Use setMargin() to add space around the grid itself, and setSpacing() to add space between the widgets.
If you just need a layout (not a widget) use QGridLayout instead.
See also QVBoxWidget and QHBoxWidget.
Constructs a grid widget with parent parent. n specifies the number of columns. The widget flags f are passed to the QFrame constructor.
Constructs a grid widget with parent parent. If orientation is Qt::Horizontal, n specifies the number of columns. If orientation is Qt::Vertical, n specifies the number of rows. The widget flags f are passed to the QFrame constructor.
Sets the spacing between the child widgets to space.
Copyright © 2004 Trolltech. | Trademarks | Qt 4.0.0-tp2 |