diff options
author | wang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com> | 2018-09-26 10:39:58 +0800 |
---|---|---|
committer | wang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com> | 2018-09-26 10:39:58 +0800 |
commit | e79d82c88e350e6b882158624363b82fe3e2d91a (patch) | |
tree | ffce5bb5ca731ac3b3fd323b18c72c7d18572481 /sample/ons/vics.qml | |
parent | ec044f44133cad1d12311345437b13b1a953226e (diff) |
update
Diffstat (limited to 'sample/ons/vics.qml')
-rw-r--r-- | sample/ons/vics.qml | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/sample/ons/vics.qml b/sample/ons/vics.qml new file mode 100644 index 0000000..30d5cd1 --- /dev/null +++ b/sample/ons/vics.qml @@ -0,0 +1,46 @@ +import QtQuick 2.6 +import QtQuick.Window 2.2 +import QtQuick.Layouts 1.1 +import QtQuick.Controls 2.0 +import AGL.Demo.Controls 1.0 + +Item { + id: onScreenVICS + visible: true + width: 1079 + height: 400 + + function qmlOnScreenParameter(message) { + console.log(qsTr('OnScreenVICS:QML:System >>> qmlOnScreenMessage.'), message); + var message_json = JSON.parse (message); + vics_info.text = message_json.info; + } + + Label { + id: vics_info + x: 40 + y: 72 + width: 1000 + height: 200 + color: "#eeeeec" + text: "show vics inofo" + font.pixelSize: 50 + textFormat: Text.AutoText + font.wordSpacing: 0 + verticalAlignment: Text.AlignVCenter + horizontalAlignment: Text.AlignHCenter + } + + Button { + id: button + anchors.top: vics_info.bottom + anchors.topMargin: 100 + anchors.horizontalCenter: parent.horizontalCenter + text: qsTr("OK") + + onClicked: { + eventHandler.onScreenReply("OK"); + } + } + +} |