[Qt-jambi-interest] avoiding the focus rectangle?

Phil Mc phildev at undertheradar.org
Fri May 15 00:35:39 CEST 2009


Hi all -
a question I've been stumped on, and Googling the Qt mailing lists isn't
turning up much that's useful: what's the best way to draw a QTableView
without the focus rectangle appearing?  The goal is to set a background
color for an active row (which is simple enough with stylesheets and a row
selection behavior!) but to avoid having the focus rectangle drawn on top
of that.

Clearing the selection model or otherwise removing focus after the row's
been drawn removes the focus rectangle, but it also disables key
navigation...

thanks!
-phil





More information about the Qt-jambi-interest mailing list