How to draw a rectangle to select multiple cells of QTableView?
-
wrote on 6 Oct 2022, 15:18 last edited by StudyQt1 10 Jun 2022, 15:18
Sth like in EXCEL, user drags to draw a rectangle to select multiple cells
I am thinking maybe I can set a transparent blank qwidget on top of the qtableview to use QRubberband, but is there a built-in functionality in QTableView? Looks like once I click on QTableview only single cells get selected.... Thank you very much -
Sth like in EXCEL, user drags to draw a rectangle to select multiple cells
I am thinking maybe I can set a transparent blank qwidget on top of the qtableview to use QRubberband, but is there a built-in functionality in QTableView? Looks like once I click on QTableview only single cells get selected.... Thank you very muchwrote on 6 Oct 2022, 15:35 last edited by JonB 10 Jun 2022, 15:35@StudyQt1
What is your QAbstractItemView::SelectionMode ? DoesQAbstractItemView::MultiSelection
Multiple items can be toggled by dragging the mouse over them.
not do what you are looking for?
-
@StudyQt1
What is your QAbstractItemView::SelectionMode ? DoesQAbstractItemView::MultiSelection
Multiple items can be toggled by dragging the mouse over them.
not do what you are looking for?
3/3