[Interest] focus indicator

John Weeks john at wavemetrics.com
Tue Apr 9 01:35:16 CEST 2013


On Macintosh, I can set an attribute on my custom widget:

 	setAttribute(Qt::WA_MacShowFocusRect);

Now, when the custom widget gets focus, the fuzzy blue focus ring appears around my widget.

Is there anything like that on Windows? Do I have to use a QFocusFrame with my widget? Or maybe QStyle::drawPrimitive(QStyle::PE_FrameFocusRect, ...)?

Thank you!

-John Weeks




More information about the Interest mailing list