[Qt-interest] QPropertyAnimation doesnt work for all properties....
Tony Rietwyk
tony.rietwyk at rightsoft.com.au
Mon Jun 21 13:51:33 CEST 2010
Look at the base class documentation. It lists the allowed types, and what
to do if you need others.
-----Original Message-----
From: qt-interest-bounces at trolltech.com
[mailto:qt-interest-bounces at trolltech.com] On Behalf Of Pankaj Chawla
Sent: Monday, 21 June 2010 21:06
To: qt-interest at trolltech.com
Subject: [Qt-interest] QPropertyAnimation doesnt work for all properties....
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
No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 9.0.829 / Virus Database: 271.1.1/2951 - Release Date: 06/21/10
16:36:00
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100621/4c648ddf/attachment.html
More information about the Qt-interest-old
mailing list