以下成员源于类 QGridLayout are part of the Qt compatibility layer. We advise against using them in new code.
| void | addColSpacing (int col , int minsize ) |
| void | addMultiCell (QLayoutItem * l , int fromRow , int toRow , int fromCol , int toCol , Qt::Alignment align = 0) |
| void | addMultiCellLayout (QLayout * layout , int fromRow , int toRow , int fromCol , int toCol , Qt::Alignment align = 0) |
| void | addMultiCellWidget (QWidget * widget , int fromRow , int toRow , int fromCol , int toCol , Qt::Alignment align = 0) |
| void | addRowSpacing (int row , int minsize ) |
| QRect | cellGeometry (int row , int column ) const |
| int | colSpacing (int col ) const |
| int | colStretch (int col ) const |
| int | numCols () const |
| int | numRows () const |
| Qt::Corner | origin () const |
| int | rowSpacing (int row ) const |
| void | setColSpacing (int col , int minSize ) |
| void | setColStretch (int col , int stretch ) |
| void | setOrigin (Qt::Corner corner ) |
| void | setRowSpacing (int row , int minSize ) |
| bool | findWidget (QWidget * w , int * row , int * column ) |
使用 addItem (new QSpacerItem (minsize, 0), 0, col) instead.
Use an addItem () overload that allows you to specify row and column spans instead.
Use an addLayout () overload that allows you to specify row and column spans instead.
Use an addWidget () overload that allows you to specify row and column spans instead.
使用 addItem (new QSpacerItem (0, minsize), row, 0) instead.
使用 cellRect ( row , column ) 代替。
使用 columnMinimumWidth () 代替。
另请参阅 setColSpacing ().
使用 columnStretch () 代替。
另请参阅 setColStretch ().
[protected]
bool
QGridLayout::
findWidget
(
QWidget
*
w
,
int
*
row
,
int
*
column
)
搜索小部件
w
in this layout (not including child layouts). If
w
is found, it sets
*
row
and
*
column
to the row and column that the widget occupies and returns true; otherwise returns false.
If the widget spans multiple rows/columns, the top-left cell is returned.
使用 indexOf () 和 getItemPosition () 代替。
使用 columnCount () 代替。
使用 rowCount () 代替。
使用 originCorner () 代替。
另请参阅 setOrigin ().
使用 rowMinimumHeight ( row ) 代替。
另请参阅 setRowSpacing ().
使用 setColumnMinimumWidth () 代替。
另请参阅 colSpacing ().
使用 setColumnStretch () 代替。
另请参阅 colStretch ().
使用 setOriginCorner ( corner ) 代替。
另请参阅 origin ().
使用 setRowMinimumHeight ( row , minSize ) 代替。
另请参阅 rowSpacing ().