blob: ffcf79de31c0987d442bb4a7f45dbeae087801c6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
import Qt 4.7
import Qt.widgets 4.7
Rectangle {
width: 200
height: 200
RedSquare {
id: square
width: 80
height: 80
}
BlueCircle {
anchors.left: square.right
width: 80
height: 80
}
QGraphicsWidget {
anchors.top: square.bottom
size.width: 80
size.height: 80
layout: QGraphicsLinearLayout {
LayoutItem {
preferredSize: "100x100"
Rectangle { color: "yellow"; anchors.fill: parent }
}
}
}
}
|