Qt 4.8
ScriptAction Class Reference

The ScriptAction element allows scripts to be run during an animation. More...

Inheritance diagram for ScriptAction:
Animation

Detailed Description

The ScriptAction element allows scripts to be run during an animation.

Since
4.7

ScriptAction can be used to run a script at a specific point in an animation.

// ...
}
ScriptAction { script: doSomething(); }
// ...
}
}

When used as part of a Transition, you can also target a specific StateChangeScript to run using the scriptName property.

State {
name: "state1"
StateChangeScript {
name: "myScript"
script: doStateStuff();
}
// ...
}
// ...
Transition {
to: "state1"
SequentialAnimation {
NumberAnimation { /* ... */ }
ScriptAction { scriptName: "myScript" }
NumberAnimation { /* ... */ }
}
}
See also
StateChangeScript

The documentation for this class was generated from the following file: