-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.qml
71 lines (60 loc) · 1.65 KB
/
main.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
import QtQuick 2.0
import QtQuick.Controls 1.3
import QtQuick.Window 2.2
import QtQuick.Dialogs 1.2
import QtGStreamer 1.0
import QtQuick.Controls.Styles 1.3
Rectangle {
width: 1280
height: 720
visible: true
anchors.centerIn: parent
color: "black"
VideoItem {
id: video1
width: parent.width
height: parent.height
surface: videoSurface1 //bound on the context from main()
}
Button {
id : right
iconSource: "images/back.png"
// opacity: 0
rotation: 180
anchors.verticalCenter: parent.verticalCenter
x: parent.width - 150
onClicked: nodeSelector.selectNext()
style: ButtonStyle {
background: Rectangle {
color:"transparent"
}
}
}
Button {
id: left
iconSource: "images/back.png"
anchors.verticalCenter: parent.verticalCenter
x: 50
onClicked: nodeSelector.selectPrevious()
style: ButtonStyle {
background: Rectangle {
color:"transparent"
}
}
}
Image {
id: thermalImage
property real thermalfovfactor: 0.5
property int imageid: 0
source: "image://theramlprovider/pixmap"
cache: false
anchors.centerIn: parent
width: parent.width*thermalfovfactor
height: parent.height*thermalfovfactor
}
Connections {
target: thermal
onRefresh: { thermalImage.imageid++;
thermalImage.source = "image://theramlprovider/"+thermalImage.imageid }
}
}