[PySide] QPalette.BrightText not working under osx

Frank Rueter | OHUfx frank at ohufx.com
Mon Jun 18 22:40:40 CEST 2012


Hi Tibold,

I was under the impression that QPalettes were a cleaner way of doing 
this. We actually did use a stylesheet before and ditched it in favor of 
palettes.

Sounds like we may have to rethink that step if we want full control 
over the look of the app cross platform.

Thanks,
frank


On 18/06/12 7:23 PM, Tibold Kandrai wrote:
> Hi,
>
> Try to use stylesheets instead. They are simpler and not as confusing 
> as the QPalette.
> Check this: http://pastebin.com/JhuX2WX8
> It works on my Mac. :)
>
> Cheers,
> Tibold
>
> 2012/6/18 Frank Rueter | OHUfx <frank at ohufx.com <mailto:frank at ohufx.com>>
>
>     Hello wise PySide people,
>
>     I am looking at a confusing discrepancy between windows and osx
>     when trying to simply change the main font colour of my app.
>     I am using the "plastique" style to start with, then changing all
>     sorts of values to custom tailor the look.
>     For some reason this line has no effect on osx and my text remains
>     black:
>         palette.setBrush(QPalette.Active, QPalette.BrightText, brush)
>
>     Under windows it seems ok.
>
>     Here is a simple snippet that shows the problem:
>     http://pastebin.com/rV9nDUSN
>
>     Is this a bug or use error? Is there any way I can ship around
>     this to ensure my font is the colour I'm specifying in the palette?
>     I'm using PySide 1.0.9
>
>
>     Cheers,
>     frank
>
>
>
>     _______________________________________________
>     PySide mailing list
>     PySide at qt-project.org <mailto:PySide at qt-project.org>
>     http://lists.qt-project.org/mailman/listinfo/pyside
>
>
>
>
> -- 
> Kandrai Tibold
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20120619/683f9c46/attachment.html>


More information about the PySide mailing list