Unsolved Check if one element in a QTreeView is selected
-
Hello,
i want to know the method how to check if one element in a QTreeView is selected?
And if it is, how can i get the index of that selected element.
Im using that to get always the top element of the QTreeView:TargetModel->index(0, 0);
But before that i want to know if one element is selected.
And if it is, i want to get the index.Best Regards
-
Take a look at QItemSelectionModel::selectedIndexes().