| changeset 33 | 3e2da88830cd |
| 30:5dc02b23752f | 33:3e2da88830cd |
|---|---|
1 import Qt 4.7 |
|
2 |
|
3 Rectangle { |
|
4 width: 400 |
|
5 height: 200 |
|
6 |
|
7 Item { |
|
8 objectName: "theItem" |
|
9 anchors.centerIn: parent |
|
10 width: childrenRect.width |
|
11 height: childrenRect.height |
|
12 Rectangle { |
|
13 id: text1 |
|
14 anchors.verticalCenter: parent.verticalCenter |
|
15 width: 100; height: 100; color: "green" |
|
16 } |
|
17 Rectangle { |
|
18 anchors.left: text1.right |
|
19 anchors.verticalCenter: parent.verticalCenter |
|
20 width: 100; height: 100; color: "green" |
|
21 } |
|
22 } |
|
23 } |