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