Compatibility Members for QGridLayout

以下成员源于类 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 )

成员函数文档编制

void QGridLayout:: addColSpacing ( int col , int minsize )

使用 addItem (new QSpacerItem (minsize, 0), 0, col) instead.

void QGridLayout:: addMultiCell ( QLayoutItem * l , int fromRow , int toRow , int fromCol , int toCol , Qt::Alignment align = 0)

Use an addItem () overload that allows you to specify row and column spans instead.

void QGridLayout:: addMultiCellLayout ( QLayout * layout , int fromRow , int toRow , int fromCol , int toCol , Qt::Alignment align = 0)

Use an addLayout () overload that allows you to specify row and column spans instead.

void QGridLayout:: addMultiCellWidget ( QWidget * widget , int fromRow , int toRow , int fromCol , int toCol , Qt::Alignment align = 0)

Use an addWidget () overload that allows you to specify row and column spans instead.

void QGridLayout:: addRowSpacing ( int row , int minsize )

使用 addItem (new QSpacerItem (0, minsize), row, 0) instead.

QRect QGridLayout:: cellGeometry ( int row , int column ) const

使用 cellRect ( row , column ) 代替。

int QGridLayout:: colSpacing ( int col ) const

使用 columnMinimumWidth () 代替。

另请参阅 setColSpacing ().

int QGridLayout:: colStretch ( int col ) const

使用 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 () 代替。

int QGridLayout:: numCols () const

使用 columnCount () 代替。

int QGridLayout:: numRows () const

使用 rowCount () 代替。

Qt::Corner QGridLayout:: origin () const

使用 originCorner () 代替。

另请参阅 setOrigin ().

int QGridLayout:: rowSpacing ( int row ) const

使用 rowMinimumHeight ( row ) 代替。

另请参阅 setRowSpacing ().

void QGridLayout:: setColSpacing ( int col , int minSize )

使用 setColumnMinimumWidth () 代替。

另请参阅 colSpacing ().

void QGridLayout:: setColStretch ( int col , int stretch )

使用 setColumnStretch () 代替。

另请参阅 colStretch ().

void QGridLayout:: setOrigin ( Qt::Corner corner )

使用 setOriginCorner ( corner ) 代替。

另请参阅 origin ().

void QGridLayout:: setRowSpacing ( int row , int minSize )

使用 setRowMinimumHeight ( row , minSize ) 代替。

另请参阅 rowSpacing ().