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

QListWidgetItem * QListWidget::item ( int  row  )  const

Returns the item that occupies the given row in the list if one has been set; otherwise returns 0.

See also:
row()

Definition at line 1298 of file qlistwidget.cpp.

Referenced by QAbstractFormBuilder::saveListWidgetExtraInfo().

{
    Q_D(const QListWidget);
    if (row < 0 || row >= d->model()->rowCount())
        return 0;
    return d->model()->at(row);
}


Generated by  Doxygen 1.6.0   Back to index