[PySide] [Interest] changing colours for progressbar with GTK style
Frank Rueter | OHUfx
frank at ohufx.com
Sat Apr 29 03:48:22 CEST 2017
Thanks Benjamin,
so that means this can't be done?
Is there style sheet syntax to get the pulsing rather than the traveling
blocks?
Cheers,
frank
On 29/04/17 12:09 AM, Benjamin TERRIER wrote:
> 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
> <mailto: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
>
>
> --
>
> 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 <mailto:Interest at qt-project.org>
> http://lists.qt-project.org/mailman/listinfo/interest
> <http://lists.qt-project.org/mailman/listinfo/interest>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20170429/39587848/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/pyside/attachments/20170429/39587848/attachment.png>
More information about the PySide
mailing list