blob: 9f67c226a09c2b48113f6c5d3ad2746ca15a7595 (
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
33
34
35
36
37
38
39
|
import QtQuick 2.0
import Qt.test 1.0
Rectangle {
id: root
width: 600
height: 400
EventItem {
objectName: "background"
width: 600
height: 400
Rectangle { anchors.fill: parent; color: "lightsteelblue" }
EventItem {
objectName: "left"
width: 300
height: 300
Rectangle { anchors.fill: parent; color: "yellow" }
}
EventItem {
objectName: "right"
x: 300
width: 300
height: 300
Rectangle { anchors.fill: parent; color: "green" }
}
EventItem {
objectName: "middle"
x: 150
width: 300
height: 300
Rectangle { anchors.fill: parent; color: "blue" }
}
}
}
|