This is driving me crazy. I basically can't get a selection in my subclassed QTableView. It's a substantially large project, and most pieces of the puzzle have been subclassed. But, I feel I've checked basically everything:
QTableView::selectionModel(); // returns Qt::ExtendedSelection
QTableView::selectionBehavior(); // returns Qt::SelectItems
QTableView::QItemSelectionModel::hasSelection(); // returning false, which makes sense.
QStyledItemDelegate::paint(); // In here I check the selection (and give it a special background if selected, but it's not, as expected)
I'm not setting selectionMode() or selectionBehavior() explicitly anywhere. I even did the check's above within each mouse click just to make sure. This worked before, so I'm sure I introduced something somewhere, but I'm not sure what else I should check.
Thoughts?