PDA

View Full Version : QTableWidget exclusive cells



bwnicewo
29th May 2012, 18:36
I'm trying to make a QTable widget with only certain groups of cells exclusive to each other, meaning if more than one box gets selected within a group, only the recent one will show. it's difficult because I want a multiple selection mode, but I only want certain cells to be exclusive with one another.

ChrisW67
30th May 2012, 00:25
Listen to the QTableWidget::itemSelectionChanged() or QItemSelectionModel::selectionChanged() signal and enforce the rules as changes occur.