[Qt-qml] State transition proposal: PropertyChangesLater
Thomas Perl
th.perl at gmail.com
Sun Feb 6 14:58:03 CET 2011
Hi Vinayakam,
2011/2/6 Vinayakam Murugan <mvinayakam at gmail.com>:
> NumberAnimation { target: inner; properties: 'opacity';from:0; to:1;
> easing.type:Easing.InCubic; duration:1000}
Thanks for the suggestion, but that does not solve my problem. I have
two different cases:
* state onscreen -> offscreen: Set opacity = 0 *after* the transition
* state offscreen -> onscreen: Set opacity = 1 *before* the transition
Also, I want to try to avoid setting an easing curve and a duration. I
don't want to animate the opacity, I just want to set the opacity to a
specific value before or after the transitions (I also want the engine
to figure out the time when the transition has ended, and therefore, I
don't want to set a duration, as this is redundant information if I
just want to have it "at the end of the transition").
Thanks,
Thomas
More information about the Qt-qml
mailing list