I have a QTableWidget with SelectionMode
set to SingleSelection
, and SelectionBehavior
set to SelectColumns
. This means that only a single column can be selected.
But I later need to find out which column is selected, and the only functions I can use are selectedIndexes()
or selectedItems()
, both of which return entire lists, which is wasteful.
Is there a way to do this more efficiently?