QTableWidget. Disable selection completely.
General and Desktop
4
Posts
3
Posters
5.7k
Views
1
Watching
-
Hi,
Try with this.QTableWidget * tab = new QTableWidget();
tab->setShowGrid(false); -
This is not a selection, but the current item. That's not the same thing.
One way would be to use a QProxyStyle to manipulate the flags that get send to the underlying QStyle to render the table. I think that by playing around with the flags in the QStyleItem you can remove the focus rectangle.