| changeset 30 | 5dc02b23752f |
| 29:b72c6db6890b | 30:5dc02b23752f |
|---|---|
1 import Qt 4.7 |
|
2 |
|
3 Rectangle { |
|
4 width: 200; height: 200 |
|
5 Rectangle { |
|
6 id: myRect |
|
7 objectName: "MyRect" |
|
8 width: 50; height: 50 |
|
9 color: "green"; |
|
10 anchors.left: parent.left |
|
11 anchors.leftMargin: 5 |
|
12 } |
|
13 states: State { |
|
14 name: "right" |
|
15 AnchorChanges { |
|
16 target: myRect; |
|
17 anchors.left: undefined |
|
18 anchors.right: parent.right |
|
19 } |
|
20 } |
|
21 } |