Rather strange issue. I have a simple QTableView with one row and only checkboxes.

In my code I've done:

Qt Code:
  1. tableView->setSelectionMode(QAbstractItemView::NoSelection);
To copy to clipboard, switch view to plain text mode 
and in the model flags I have:

Qt Code:
  1. return (Qt::ItemIsUserCheckable | Qt::ItemIsEnabled);
To copy to clipboard, switch view to plain text mode 
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?

qtableview.PNG