[Interest] changing colours for progressbar with GTK style

Benjamin TERRIER b.terrier at gmail.com
Fri Apr 28 14:09:44 CEST 2017


Hi,

Normally you would use a QPalette to change the colors.

However, Qt styles can choose to take the set QPalette into account or to
ignore it.
The last time I checked the GTK style completely ignores it. I cannot check
right know,
but I think it is because it follows the GTK theme of your system.

BR,

Benjamin

2017-04-28 10:54 GMT+02:00 Frank Rueter | OHUfx <frank at ohufx.com>:

> Hi,
>
> I have a QProgressBar set to GTK like this:
>
> self.pBar = QtGui.QProgressBar()
> self.pBar.setRange(0, 0)
> self.pBar.setStyle(QtGui.QStyleFactory.create('GTK'))
>
> I like the subtle colour pulsing from dark blue to light blue for a busy
> bar better than the traveling blocks.
> However, the default is a little too subtle and I can barely see any
> pulsing at all:
>
>
> How would I go about setting the colours for a progressbar in GTK style?
>
> Thanks,
> frank
>
>
> --
>
> [image: ohufxLogo 50x50] <http://www.ohufx.com>
> *vfx compositing <http://ohufx.com/compositing.html> | workflow
> customisation and consulting <http://ohufx.com/customising.html> *
>     * <http://ohufx.com/compositing.html>*
> <http://www.nukepedia.com/nubridge>
>
> Your gateway to over 1,000 free tools... right inside of Nuke
> <http://www.nukepedia.com/nubridge>
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20170428/c87e133c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2017-04-28 at 8.54.20 PM.png
Type: image/png
Size: 5858 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20170428/c87e133c/attachment.png>


More information about the Interest mailing list