-
Bug
-
Resolution: Out of scope
-
Not Evaluated
-
None
-
4.7.0
-
None
-
Mac OS 10.6.4
Please consider the following example:
import Qt 4.7 Rectangle { width: 640 height: 480 state: "STATE_1" focus: true Keys.onPressed: { console.log("key pressed"); state= "STATE_2" } states: [ State { name: "STATE_1" }, State { name: "STATE_2" } ] // only one transition executed transitions: [ Transition { from: "STATE_1" ScriptAction { script: { console.log("leaving STATE_1"); } } }, // This is ignored unless first transition removed Transition { to: "STATE_2" ScriptAction { script: { console.log("entering STATE_2"); } } } ] }
I believe, that it is quite normal to have transitions that are executed when leaving a state and some when entering a state.
However, right only one of both is possible.