With QTreeWidget there shouldn't be need to use QModelIndexes, at least for that. QTreeWidget offers a signal QTreeWidget::itemClicked(QTreeWidgetItem* item, int column). What do you want to actually do when a certain item is clicked?