PDA

View Full Version : How do I control the QTableView font color when the control loses focus?



astibich
31st July 2014, 00:45
I recently got helping fixing the row selection coloring:

http://www.qtcentre.org/threads/59836-How-do-I-control-the-QTableView-row-selection-color-when-the-control-loses-focus?p=265415&highlight=#post265415

But I'm having the same problem with the selected row font color changing when the table loses focus. With focus, the selected row font color is white (which is what I want). Without focus, the font color changes to black. How to I prevent this color change?

Thanks,

Aaron Stibich

wysota
31st July 2014, 09:55
The same way, just use HighlightedText role.