diff options
author | zheng_wenlong <wenlong_zheng@nexty-ele.com> | 2018-02-23 11:17:18 +0900 |
---|---|---|
committer | zheng_wenlong <wenlong_zheng@nexty-ele.com> | 2018-02-23 11:17:18 +0900 |
commit | b2670af592e664ed304f7df77d84f1964f039636 (patch) | |
tree | fe002c374b72d711f069cc6578464cd75bf3a7e3 /app/system.qml | |
parent | ec044f44133cad1d12311345437b13b1a953226e (diff) |
Add beta version to sandbox
This is a beta version for onscreenapp.
Need a lot of justify.
Signed-off-by: zheng_wenlong <wenlong_zheng@nexty-ele.com>
Diffstat (limited to 'app/system.qml')
-rw-r--r-- | app/system.qml | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/app/system.qml b/app/system.qml new file mode 100644 index 0000000..7eccd4a --- /dev/null +++ b/app/system.qml @@ -0,0 +1,53 @@ +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: onScreenSystem + visible: true + width: 1079 + height: 400 + + function qmlOnScreenMessage(text) { + console.log(qsTr('OnScreenApp:QML:System >>> qmlOnScreenMessage.')); + label.text = text; + } + + Image { + id : background_image + anchors.fill: parent + anchors.topMargin: 0 + anchors.bottomMargin: 0 + source: "images/oval_1079x400.png" + } + + Label { + id: label + x: 40 + y: 72 + width: 1000 + height: 100 + color: "#eeeeec" + text: "system alert" + font.pixelSize: 50 + textFormat: Text.AutoText + font.wordSpacing: 0 + verticalAlignment: Text.AlignVCenter + horizontalAlignment: Text.AlignHCenter + } + + Button { + id: button + x: 490 + y: 250 + text: qsTr("OK") + + onClicked: { + label.text = "system reject" + eventHandler.onScreenReply("{ \"System\": \"system reject\" }"); + } + } + +} |