Prevent deselection of Table view row
-
Not without overwriting QItemSelectionModel::select()
-
@EaccB said in Prevent deselection of Table view row:
How would I do that though?
I don't understand what you mean - I already told you what you've to do.
-
@EaccB said in Prevent deselection of Table view row:
How would I do that though?
I don't understand what you mean - I already told you what you've to do.
I'm not sure how I would implement this functionality in select().
-
I'm not sure how I would implement this functionality in select().
@EaccB
Hi
I think you would inherit QItemSelectionModel and then override select.
Then use this new object in the TreeView with
https://doc.qt.io/qt-5/qtableview.html#setSelectionModel