Obsolete Members for QGridLayout

以下成员源于类 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:: QGridLayout ( QWidget * parent , int nRows , int nCols = 1, int margin = 0, int space = -1, const char * name = 0)

构造新的 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 被使用。

QGridLayout:: QGridLayout ( int nRows , int nCols = 1, int spacing = -1, const char * name = 0)

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.

QGridLayout:: QGridLayout ( QLayout * parentLayout , int nRows = 1, int nCols = 1, int spacing = -1, const char * name = 0)

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.

void QGridLayout:: expand ( int nRows , int nCols )

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.