Logo Search packages:      
Sourcecode: qt4-x11 version File versions  Download package

void QTableWidget::setRowCount ( int  rows  ) 

Sets the number of rows in this table's model to rows. If this is less than rowCount(), the data in the unwanted rows is discarded.

See also:
setColumnCount()

Definition at line 1523 of file qtablewidget.cpp.

Referenced by QAbstractFormBuilder::loadTableWidgetExtraInfo().

{
    Q_D(QTableWidget);
    if (rows < 0)
        return;
    d->model()->setRowCount(rows);
}


Generated by  Doxygen 1.6.0   Back to index