[Interest] QCommandLinkButton foreground color
André Somers
andre at familiesomers.nl
Thu Sep 27 10:23:32 CEST 2012
Op 27-9-2012 1:06, Paolino Marmolaro schreef:
> Hi,
> I'm trying to change the foreground color to a QCommandLinkButton, but
> it seems to have a fixed RGB in the paintEvent method.
>
The button is renderend through the QStyle API. The style you use
probably doesn't use the palette, as many of the modern desktop styles.
They use platform definitions or even the actual drawing routines of the
platform to render widgets. However, they will respond to style sheets.
André
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120927/bda86ba5/attachment.html>
More information about the Interest
mailing list