I'm using multiselection in my QTableView. And it is fine, but it's not selecting rows with shift + up or shift + down.
Is it possible to fix it?
I was trying to use other selectionModes, but with them it is impossible to unselect all rows.
I'm using multiselection in my QTableView. And it is fine, but it's not selecting rows with shift + up or shift + down.
Is it possible to fix it?
I was trying to use other selectionModes, but with them it is impossible to unselect all rows.
What do you have set as selection behavior etc. on your view?
table.setSelectionBehavior(SelectionBehavior.Selec tRows);
Ok, I see the problem now. Maybe QAbstractItemView::ExtendedSelection as selection mode is what you are looking for. If not, you have to detected when the use is holding Shift and a) handle the selection by your own, or set for that specific time ExtendedSelection.
Bookmarks