1 import Qt 4.7
2 Rectangle {
3 id: myRectangle
4 width: 100; height: 100
5 color: "red"
6 states: State {
7 name: "blue"
8 PropertyChanges { target: myRectangle; color: "blue" }
9 }
10 }