-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.qml
More file actions
35 lines (30 loc) · 784 Bytes
/
Copy pathmain.qml
File metadata and controls
35 lines (30 loc) · 784 Bytes
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
import QtQuick 2.5
import QtQuick.Window 2.2
Item {
visible: true
width: 640
height: 480
Rectangle {
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: parent.top
id: myrect1
objectName: "myrect1"
border.color: "black"
width: 400
height: 200
gradient:
Gradient {
GradientStop {position: 0.3; color: "#303030" }
GradientStop {position: 0.7; color: "#707070" }
}
Text {
text: "We should get smaller BLUE and RED rounded rectangles inside..."
}
}
GameView {
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: myrect1.bottom
id: myrect2
objectName: "myrect2"
}
}