[PyQt] Re: About Focus Rect on widgets

Toby Dickenson tdickenson at geminidataloggers.com
Wed Apr 9 10:22:43 BST 2008


Hans Meine wrote:

> IMO such things should not be done by any app; this is a style issue
> AFAICS. Every user should be able to decide himself whether he wants focus
> rects or not (some people might even need them).

In my experience any code overriding a style should first check the name of
the style it is replacing, and selectively override if you know the default
style is inferior to your new.

We have a couple of widgets where we will replace QWindowsXPStyle with
QWindowsStyle to be less colorful. Or even replace either QWindowsStyle or
QWindowsXPStyle with Motif for a flatter look. However in all of those
cases we have found it better to leave the default style in place if it has
been changed to something we have not seen before.






More information about the PyQt mailing list