[Qt-qml] "Can't apply a state change as part of a state definition"
michael.brasser at nokia.com
michael.brasser at nokia.com
Fri Jan 28 06:24:48 CET 2011
Hi,
On 27/01/2011, at 6:57 AM, ext mathias.malmqvist at nokia.com wrote:
> One of my state definitions triggers this error
> <Unknown File>: QML StateGroup: Can't apply a state change as part of a state definition.
> and I can't quite work out why.
>
> Is it the case that no part of the state definition (like a PropertyChange) may have *any*
> effect (direct or indirect) on a property that is part of a "when" expression determining
> what the current state is?
No part of a state definition should trigger an additional state change (for that particular stategroup), as the state machine can't handle changing from one state to another until it has completely entered the first state. You might be able to get some useful debug information using the environmental variable STATECHANGE_DEBUG (set to 1) -- it should be able to at least tell you the second state that is being triggered.
Regards,
Michael
More information about the Qt-qml
mailing list