[Qt-qml] StateChangeScript - why do we have it?
Ville M. Vainio
vivainio at gmail.com
Mon Dec 27 08:51:00 CET 2010
On Mon, Dec 27, 2010 at 5:20 AM, Girish Ramakrishnan
<girish at forwardbias.in> wrote:
> When you have multiple changes in a state, you can control when the
> script gets executed in a transition using ScriptAction. For example,
> if you have 3 PropertyChange and a StateChangeScript, you can have the
> script execute after 2 PropertyChanges. With something like onEntered,
> the script would always have to run at the beginning of the
> transition.
Why not have just ScriptAction and onEntered, then? StateChangeScript
is a weird special case for ScriptAction that can execute arbitrary
script snippets as well...
--
Ville M. Vainio @@ Forum Nokia
More information about the Qt-qml
mailing list