Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.7.0
-
None
-
Windows 7
Qt Creator 2.0.81 (2.1.0-rc1)
Based on Qt 4.7.0 (32 bit)
Built on Jul 31 2010 at 02:07:47
From revision 66750de6af
-
969daadd245153e8bb6c9a89a51565b83832f484
Description
In following program red box should move diagonally after "b"-state is entered, but only y-property is changed.
It seems that "b"-state does not inherit changes from "a" state.
extend.qml
import Qt 4.7 Rectangle { width: 200 height: 200 Rectangle { id:box width:100 height:100 color:"red" states:[ State { name: "a" changes:PropertyChanges { target: box x:50 } }, State { name: "b" extend:"a" changes:PropertyChanges { target: box y:50 } } ] } MouseArea {id:mouse;anchors.fill: parent; onClicked:box.state="b"} }