以下成員源於類 QGridLayout 已過時。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。
(obsolete)
|
QGridLayout (QWidget * parent , int nRows , int nCols = 1, int margin = 0, int space = -1, const char * name = 0) |
(obsolete)
|
QGridLayout (int nRows , int nCols = 1, int spacing = -1, const char * name = 0) |
(obsolete)
|
QGridLayout (QLayout * parentLayout , int nRows = 1, int nCols = 1, int spacing = -1, const char * name = 0) |
(obsolete)
void
|
expand (int nRows , int nCols ) |
構造新的 QGridLayout with nRows rows, nCols columns and parent widget, parent . parent may not be 0. The grid layout is called name .
margin is the number of pixels between the edge of the widget and its managed children. space is the default number of pixels between cells. If space is -1, the value of margin 被使用。
Constructs a new grid with nRows rows and nCols columns. If spacing is -1, this QGridLayout inherits its parent's spacing ();否則 spacing is used. The grid layout is called name .
You must insert this grid into another layout. You can insert widgets and layouts into this layout at any time, but laying out will not be performed before this is inserted into another layout.
Constructs a new grid with nRows rows and nCols columns. If spacing is -1, this QGridLayout inherits its parent's spacing ();否則 spacing is used. The grid layout is called name .
You must insert this grid into another layout. You can insert widgets and layouts into this layout at any time, but laying out will not be performed before this is inserted into another layout.
Expands this grid so that it will have nRows rows and nCols columns. Will not shrink the grid. You should not need to call this function because QGridLayout expands automatically as new items are inserted.