30d5cd17ce1a65babad1611404bdf3308ce3a623
[apps/onscreenapp.git] / sample / ons / vics.qml
1 import QtQuick 2.6
2 import QtQuick.Window 2.2
3 import QtQuick.Layouts 1.1
4 import QtQuick.Controls 2.0
5 import AGL.Demo.Controls 1.0
6
7 Item {
8     id: onScreenVICS
9     visible: true
10     width: 1079
11     height: 400
12
13     function qmlOnScreenParameter(message) {
14         console.log(qsTr('OnScreenVICS:QML:System >>> qmlOnScreenMessage.'), message);
15         var message_json = JSON.parse (message);
16         vics_info.text = message_json.info;
17     }
18
19     Label {
20         id: vics_info
21         x: 40
22         y: 72
23         width: 1000
24         height: 200
25         color: "#eeeeec"
26         text: "show vics inofo"
27         font.pixelSize: 50
28         textFormat: Text.AutoText
29         font.wordSpacing: 0
30         verticalAlignment: Text.AlignVCenter
31         horizontalAlignment: Text.AlignHCenter
32     }
33
34     Button {
35         id: button
36         anchors.top: vics_info.bottom
37         anchors.topMargin: 100
38         anchors.horizontalCenter: parent.horizontalCenter
39         text: qsTr("OK")
40
41         onClicked: {
42             eventHandler.onScreenReply("OK");
43         }
44     }
45
46 }