1 Attachment(s)
QTableView with checkboxes - can't disable selections between checkboxes
Rather strange issue. I have a simple QTableView with one row and only checkboxes.
In my code I've done:
and in the model flags I have:
Code:
return (Qt::ItemIsUserCheckable | Qt::ItemIsEnabled);
Yes, I'm still able to click the area between (to the right) of a checkbox and see a selection/highlight. This is the light purple color below.
Am I missing something obvious? Is there a way to fully disable this selection (highlighting?) behavior?
Attachment 13766
Re: QTableView with checkboxes - can't disable selections between checkboxes
Are you sure that the "light purple" is really the selection marker and not just the "current cell" marking?
Just to be sure: Enable cell selection and select something - does it look like your screenshot?