[Qt-interest] How to animate the color of a QLabel
Wilhelm
wilhelm.meier at fh-kl.de
Fri Jan 7 18:14:37 CET 2011
Hi,
this is a simple question, I guess, but I can't get the right answer:
I have a QStateMachine with some transitions. One of these transitions
sets the status of a QLabel from enabled to disabled. And now I want to
animate this change with an animated color.
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).
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?
--
Wilhelm
More information about the Qt-interest-old
mailing list