-
Notifications
You must be signed in to change notification settings - Fork 0
/
NumericPage.qml
41 lines (37 loc) · 939 Bytes
/
NumericPage.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
import QtQuick 2.7
import QtQuick.Controls 2.0
import QtQuick.Layouts 1.3
import QtQuick.Extras 1.4
import QtQuick.Controls.Styles 1.4
Page{
id: base
property double temp: 0
property double humidity: 0
property bool connectedIndicator: false
ColumnLayout{
id: gridLayout
anchors.fill: parent
anchors.margins: 10
SegmentDisplay{
id: time
text: Qt.formatTime(new Date(),"hh:mm:ss")
Timer {
id: timer
interval: 1000
repeat: true
running: true
onTriggered:
{
time.text = Qt.formatTime(new Date(),"hh:mm:ss")
}
}
}
SegmentDisplay{
id: temp
text: "Cº " + base.temp + " % " + base.humidity
}
Item{
Layout.fillHeight: true
}
}
}