Hi Alessandro, A ColorAnimation will automatically "match" color properties in a Transition or Behavior (where it can see whether a property of type QColor has changed), but this does not apply to standalone animations like the example. The difference in this case between PropertyAnimation and ColorAnimation would only be that ColorAnimation is more strongly typed (so e.g. there should be an error if assigning a number to "to", and the internal interpolation should be slightly more optimized).
Regards,Michael > From: alessandro.port...@digia.com > To: prismatic.proj...@gmail.com; interest@qt-project.org > Date: Tue, 25 Mar 2014 14:52:23 +0000 > Subject: Re: [Interest] QtQuick ColorAnimation not working as expected > > ... and adding > property: "color" > to Preet's ColorAnimation version makes it work again. But then I wonder what > the difference that one and the PropertyAnimation version is. Any idea, > anyone? > > Br, > Alessandro > ________________________________________ > From: interest-bounces+alessandro.portale=digia....@qt-project.org > [interest-bounces+alessandro.portale=digia....@qt-project.org] on behalf of > Portale Alessandro [alessandro.port...@digia.com] > Sent: Tuesday, March 25, 2014 15:45 > To: Preet; <interest@qt-project.org> > Subject: Re: [Interest] QtQuick ColorAnimation not working as expected > > I can reproduce that Preet's ColorAnimation version does not work. Neither > with released Qt 5.2.1 nor with Qt 5.3.0-beta. Both dynamic builds. Right now > it looks like a bug to me. > > Br, > Alessandro > ________________________________________ > From: interest-bounces+alessandro.portale=digia....@qt-project.org > [interest-bounces+alessandro.portale=digia....@qt-project.org] on behalf of > Preet [prismatic.proj...@gmail.com] > Sent: Tuesday, March 25, 2014 15:35 > To: <interest@qt-project.org> > Subject: Re: [Interest] QtQuick ColorAnimation not working as expected > > On Mon, Mar 24, 2014 at 5:16 PM, Alex Montgomery <apmontgom...@gmail.com> > wrote: > > Are you statically linking Qt? If you are, this might be your problem: > > https://bugreports.qt-project.org/browse/QTBUG-37341 > > I'm not linking against Qt statically. I'm linking against Qt (built > latest stable 5.3? from git) as a shared lib on Linux (Arch, 64-bit > 3.13)... it's bizarre that you'd only run into the issue when you > linked to it statically. Were you linking against the exact same build > when you tested both dynamic/static? Hopefully the bug report you > filed will shed some further light. > > > Preet > _______________________________________________ > Interest mailing list > Interest@qt-project.org > http://lists.qt-project.org/mailman/listinfo/interest > _______________________________________________ > Interest mailing list > Interest@qt-project.org > http://lists.qt-project.org/mailman/listinfo/interest > _______________________________________________ > Interest mailing list > Interest@qt-project.org > http://lists.qt-project.org/mailman/listinfo/interest
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest