[SOLVED] Find out which items are selected in QTreeView when using ExtendedSelection?
General and Desktop
3
Posts
3
Posters
2.2k
Views
1
Watching
-
I have a QTreeView where I can select multiple rows by holding down "Ctrl".
To do this, I have used:
@setSelectionMode(QAbstractItemView::ExtendedSelection);@To find out which item is clicked I used to look at the signal
@clicked( const QModelIndex &)@However, now that I can have multiple items selected, how can I find out which items are selected, and ignore the ones that are not?