[Qt-qml] Completing sequential animation inside Transition
Kauppi Sauli (Nokia-MS/Helsinki)
sauli.kauppi at nokia.com
Fri Oct 21 13:46:43 CEST 2011
Hi,
Is it possible to complete sequential animation inside Transition
element? ScriptActions would need to be still executed.
E.g.:
Transition {
from: ""; to: "state1";
SequentialAnimation on {
ScriptAction { script: if (state == "state1") { doSomething(); } }
PropertyAnimation { properties: "x"; easing.type:
Easing.InOutExpo; duration: 500 }
ScriptAction { script: if (state == "state1") {
doSomethingElse(); } }
}
}
I cannot set PropertyAnimation's duration to 0 beforehand, as I get
information that animation needs to be completed, only when it is
already in progress.
Should I just call complete() for PropertyAnimation?
Also, how do I know that SequentialAnimation inside Transition is
running? running property is false even during animation. Can I use
"Animation on property syntax" for Animation element inside transition?
I am using Qt 4.7.4.
Thanks,
Sauli
More information about the Qt-qml
mailing list