[Qt-interest] QTableView and text coloring

Pere Constans constans at molspaces.com
Thu May 21 21:42:33 CEST 2009



I use QTableView for multi- row and column data, set to SelectRows and 
SingleSelection, and GridStyle set to NoPen, for display, not for editting, 
purposes.

I've two questions:

1) Is there a way to not display that thin dotted border for a selected cell? 
It gives a poor visual effect, as I'd expect such border, if any, to extend 
to the complete, selected row.

2) Is there a simple way to get text colored, like syntax highlighting? On the 
archives there're a couple of threads regarding views and rich text. They 
seem complex and contradictory, though, and just a color change, not font or 
anchors, is what I look for.


Thanks



More information about the Qt-interest-old mailing list