Connect the currentChanged signal from QTreeView::selectionModel to some slot in your class and using the tree view model get the data at the index provided by that signal.
EDIT: forget that, use QTreeView::currentIndex in conjunction with the model and get the data of the current index. No need for signals/slots.
Bookmarks