QItemSelectionModel * selectionModel()
C++ (Qt)void QAbstractItemView::setCurrentIndex ( const QModelIndex & index ) [slot]
C++ (Qt)QModelIndex QAbstractItemModel::index ( int row, int column, const QModelIndex & parent = QModelIndex() )
C++ (Qt)QModelIndex parentIndex = treemodel->parent(currentModelIndex);treeview->selectionModel()->select(parentIndex,QItemSelectionModel::ClearAndSelect);