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

QRect QTreeWidget::visualItemRect ( const QTreeWidgetItem item  )  const

Returns the rectangle on the viewport occupied by the item at item.

Definition at line 2096 of file qtreewidget.cpp.

References QAbstractItemModel::index(), QModelIndex::isValid(), QModelIndex::model(), and QTreeView::visualRect().

    Q_D(const QTreeWidget);
    QModelIndex index = d->model()->index(const_cast<QTreeWidgetItem*>(item), 0);
    return visualRect(index);

Generated by  Doxygen 1.6.0   Back to index