Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions |

# Compatibility Members for QGridLayout

The following class members are part of the Qt 3 compatibility layer. They are provided to help you port old code to Qt 4. We strongly advise against using them in new code.

QGridLayout class reference

### Public Functions

- 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 * w, int fromRow, int toRow, int fromCol, int toCol, Qt::Alignment align = 0 )
- void addRowSpacing ( int row, int minsize )
- int colSpacing ( int col ) const
- int colStretch ( int col ) const
- int numCols () const
- int numRows () const
- void setColSpacing ( int col, int minSize )
- void setColStretch ( int col, int stretch )

## Member Function Documentation

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

Use 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 * w, 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 )

Use addItem(new QSpacerItem(0, minsize), row, 0) instead.

### int QGridLayout::colSpacing ( int col ) const

Use columnSpacing() instead.

### int QGridLayout::colStretch ( int col ) const

Use columnStretch() instead.

### int QGridLayout::numCols () const

Use columnCount() instead.

### int QGridLayout::numRows () const

Use rowCount() instead.

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

Use setColumnSpacing() instead.

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

Use setColumnStretch() instead.