[Qt-interest] How to animate the color of a QLabel

william.crocker at analog.com william.crocker at analog.com
Fri Jan 7 19:03:58 CET 2011



> 
> I tried to use a QPropertyAnimation for this transition, but the QLabel
> has no property color. It has only palette, but I can't animate the
> palette in some way (I think, the type QPalette isn't supported by
> QPropertyAnimation).
>

Sub-class it and give it what ever properties you want.

> I would like to change the color of the label text from the default
> active color to the default inactive color with some different color a
> some keyvalues of the animation.
> 
> Any hints?
> 



More information about the Qt-interest-old mailing list