hi all.
how can i get in a meinwindow which the current selected item in my treeview is?
hi all.
how can i get in a meinwindow which the current selected item in my treeview is?
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.
QItemSelectionModel....
reading the docu helps.....
Bookmarks