The QGridLayout class specifies child widget geometry. More...
#include <qlayout.h>
Inherits QLayout.
Contents are arranged in a grid. If you need a more flexible layout, see the QBoxLayout class.
Warning: The current version does not support deletion of child widgets. If you need to remove widgets that are under geometry management, you have to delete the layout manager first.
Constructs a new QGridLayout with nRows, nCols columns and main widget parent. parent may not be 0.
border is the number of pixels between the edge of the widget and the managed children. autoBorder is the default number of pixels between cells. If autoBorder is -1 the value of border is used.
name is the internal object name.
Constructs a new grid with nRows rows and nCols columns, If autoBorder is -1, this QGridLayout will inherits its parent's defaultBorder(), otherwise autoBorder is used.
You have to insert this grid into another layout before using it.
Deletes this grid. Geometry management is terminated if this is a top-level grid.
Places another layout at position (row, col) in the grid. The top left position is (0,0).
Adds the widget w to the cell grid, spanning multiple rows/columns.
Note that multicell widgets do not define the columns/rows they span. Each column must contain at least one widget that does not span multiple columns. Likewise, each row must contain one widget that does not span multiple rows. If your layout does not satisfy this, consider using the QBoxLayout class instead.
Alignment is specified by align which takes the same arguments as QLabel::setAlignment(), alignment has no effect unless you have set QWidget::maximumSize().
Adds the widget w to the cell grid at row, col. The top left position is (0,0)
Alignment is specified by align which takes the same arguments as QLabel::setAlignment(). Note that widgets take all the space they can get; alignment has no effect unless you have set QWidget::maximumSize().
[virtual protected]
Initializes this grid.
Reimplemented from QLayout.
[virtual protected]
This function returns the main horizontal chain.
Reimplemented from QLayout.
[virtual protected]
This function returns the main vertical chain.
Reimplemented from QLayout.
Sets the stretch factor of column col to stretch. The first column is number 0.
The stretch factor is relative to the other columns in this grid. Columns with higher stretch factor take more of the available space.
The default stretch factor is 0. If the stretch factor is 0 and no other column in this table can grow at all, the column may still grow.
Sets the stretch factor of row row to stretch. The first row is number 0.
The stretch factor is relative to the other rows in this grid. Rows with higher stretch factor take more of the available space.
The default stretch factor is 0. If the stretch factor is 0 and no other row in this table can grow at all, the row may still grow.
This file is part of the Qt toolkit, copyright © 1995-97 Troll Tech, all rights reserved.
It was generated from the following files: