
We bake cookies in your browser for a better experience. Using this site means that you consent.Read More
TheQ3Grid widget provides simple geometry management of its children.More...
| Header: | #include <Q3Grid> |
| Inherits: | Q3Frame |
| Q3Grid(int n, QWidget * parent = 0, const char * name = 0, Qt::WindowFlags f = 0) | |
| Q3Grid(int n, Qt::Orientation orient, QWidget * parent = 0, const char * name = 0, Qt::WindowFlags f = 0) | |
| void | setSpacing(int space) |
| virtual QSize | sizeHint() const |
| virtual void | frameChanged() |
TheQ3Grid widget 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 rowsor columns is defined in the constructor. All the grid's children will be placed and sized in accordance with theirsizeHint() andsizePolicy().
UsesetMargin() to add space around the grid itself, andsetSpacing() to add space between the widgets.
See alsoQ3VBox,Q3HBox, andQGridLayout.
Constructs a grid widget with parentparent, calledname.n specifies the number of columns. The widget flagsf are passed to theQ3Frame constructor.
Constructs a grid widget with parentparent, calledname. Iforient isHorizontal,n specifies the number of columns. Iforient isVertical,n specifies the number of rows. The widget flagsf are passed to theQ3Frame constructor.
[virtual protected]void Q3Grid::frameChanged()Reimplemented fromQ3Frame::frameChanged().
Sets the spacing between the child widgets tospace.
[virtual]QSize Q3Grid::sizeHint() constReimplemented fromQWidget::sizeHint().
© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of theGNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.