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

void QListWidget::scrollToItem ( const QListWidgetItem item,
QAbstractItemView::ScrollHint  hint = EnsureVisible 
) [slot]

Scrolls the view if necessary to ensure that the item is visible. The hint parameter specifies more precisely where the item should be located after the operation.

Definition at line 1660 of file qlistwidget.cpp.

References QListView::scrollTo().

    QModelIndex index = d->model()->index(const_cast<QListWidgetItem*>(item));
    QListView::scrollTo(index, hint);

Generated by  Doxygen 1.6.0   Back to index