[Qt-qml] Pause animation until a condition is met

Adriano Rezende adriano.rezende at openbossa.org
Fri Sep 3 18:16:57 CEST 2010


Sorry, onConditionChanged is as follows:

GuardAnimation.qml
===========================================
ScriptAction {
    property variant target
    property bool condition

    script: if (condition) target.paused = true
    onConditionChanged: if (!condition) target.paused = false
}

Br,
Adriano



More information about the Qt-qml mailing list