1 import Qt 4.7
2 Rectangle {
3 width: 400
4 height: 400
5 Rectangle {
6 id: rect
7 objectName: "MyRect"
8 width: 100; height: 100; color: "green"
9 Behavior on x { NumberAnimation { duration: 500; } }
10 }
11 }