15 onClicked: if (wrapper.state == "state1") wrapper.state = ""; else wrapper.state = "state1";
20 PropertyChanges { target: myRect; x: 200; color: "blue" }
22 transitions: Transition {
23 //comment out each in turn to make sure each only animates the relevant property
24 ColorAnimation { properties: "x,color"; duration: 1000 } //x is real, color is color
25 NumberAnimation { properties: "x,color"; duration: 1000 } //x is real, color is color