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

Alex alexlordax+qt at gmail.com
Fri Sep 3 19:32:32 CEST 2010


On Fri, Sep 3, 2010 at 9:16 AM, Adriano Rezende
<adriano.rezende at openbossa.org> wrote:
> 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
> }
>


That is a much more elegant solution than mine.  Thank you.

Alex




More information about the Qt-qml mailing list