QTableWidget. Disable selection completely.
-
wrote on 15 May 2014, 03:45 last edited by
I set selectionMode to NoSelection. Selection turned off. But dotted line is still painting. How can I hide it?
-
wrote on 15 May 2014, 15:09 last edited by
Hi,
Try with this.QTableWidget * tab = new QTableWidget();
tab->setShowGrid(false); -
wrote on 15 May 2014, 21:10 last edited by
I talk not about this.
Selection is disabled. But when I click on a cell there is appear dotted line on the borders of the cell. -
wrote on 16 May 2014, 14:05 last edited by
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.
1/4