forked from FEC-SIH-23/Blind-FEC-Extractor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Loading.qml
51 lines (43 loc) · 1.06 KB
/
Loading.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
import QtQuick 2.0
import QtQuick.Controls 2.12
import QtQuick.Controls.Material 2.12
Rectangle {
implicitHeight: parent.height
implicitWidth: parent.width
property int uploadFlag
Connections {
target: myObject
function onMessageChanged(message) {
window.inputText = message
}
}
Timer {
id: dispensingTimer
interval: 3000
running: false
onTriggered: stackView.push("FinishScreen.qml")
}
Component.onCompleted: {
dispensingTimer.start()
myObject.predict(window.inputText, uploadFlag)
}
id: mainBackground
color: "#e0111a"
BusyIndicator {
id: dispensingBusyIndicator
anchors.centerIn: parent
width: 281
height: 281
Material.accent: "#fbcec0"
}
Text {
font.pixelSize: 96
anchors {
horizontalCenter: parent.horizontalCenter
top: dispensingBusyIndicator.bottom
topMargin: 15
}
color: "#fbcec0"
text: "Analysing..."
}
}