equal
deleted
inserted
replaced
|
1 import Qt 4.7 |
|
2 Rectangle { |
|
3 width: 400 |
|
4 height: 400 |
|
5 |
|
6 onColorChanged: { |
|
7 rect.x = 200 |
|
8 } |
|
9 |
|
10 Rectangle { |
|
11 id: rect |
|
12 objectName: "MyRect" |
|
13 width: 100; height: 100; color: "green" |
|
14 Behavior on x { NumberAnimation { duration: 800; } } |
|
15 } |
|
16 } |