-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathUnderMeSensi.qml
41 lines (37 loc) · 939 Bytes
/
UnderMeSensi.qml
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
40
import Qt 4.7
Rectangle {
width: 800
height: 480
Image {
id: img
source: "images/pysidelogo.png"
fillMode: Image.PreserveAspectFit
width: parent.width/2
height: parent.height/2
anchors.centerIn: parent
transform: [
Rotation {
origin {
x: img.width/2
y: img.height/2
}
axis { x: 1; y: 0; z: 0 }
angle: listener.tilt
},
Rotation {
origin {
x: img.width/2
y: img.height/2
}
axis { x: 0; y: 0; z: 1 }
angle: listener.rotation
}
]
}
Text {
anchors.left: parent.left
anchors.bottom: parent.bottom
color: "#aaa"
text: "To quit, press Ctrl+Backspace, then close"
}
}