I have a QTableWidget and want items to be selectable depending on what's already selected (only if they have the same content in second column).
I know how to make items selectable or not. But everything should remain selectable so the user can select a single item to start the selection fresh. Only adding to a selection by keeping shift or ctrl pressed should allow/select only suitable items.
Where can I hook into to make adding to a selection only accept suitable rows?
Note: I'm using PySide but I can work from C++ or PyQt code just fine.