[SOLVED] Find out which items are selected in QTreeView when using ExtendedSelection?
-
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?