[Qt-qml] State transition proposal: PropertyChangesLater

bea.lam at nokia.com bea.lam at nokia.com
Mon Feb 7 08:04:15 CET 2011


On 06/02/2011, at 11:58 PM, ext Thomas Perl wrote:

> 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

If you need a different sequence of animations for each case, have you tried defining two transitions and applying the correct one to each by case setting the Transition::from and Transition::to properties?


regards,

Bea


More information about the Qt-qml mailing list