[Qt-interest] QPropertyAnimation doesnt work for all properties....

Pankaj Chawla pankaj013 at gmail.com
Mon Jun 21 13:06:29 CEST 2010


Hi

Any idea why this wont work:

     QPushButton button("Animated Button");
     button.show();

     QPropertyAnimation animation2(&button, "palette");
     animation2.setDuration(2000);
     animation2.setStartValue(QPalette(Qt::red));
     animation2.setEndValue(QPalette(Qt::green));
     animation2.setEasingCurve(QEasingCurve::OutBounce);
     animation2.start()

I am able to animate using "geometry" and "windowOpacity" properties
but none else. Is there a restriction on which all properties can be used?

Thanks
Pankaj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100621/f86aa257/attachment.html 


More information about the Qt-interest-old mailing list