diff options
author | wang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com> | 2018-11-29 11:13:12 +0800 |
---|---|---|
committer | wang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com> | 2018-11-29 11:13:12 +0800 |
commit | 5ba4327b148f81852c6e2a53bc51ab07b238602e (patch) | |
tree | 0be7f86962e8a26ad3cdbc6cb4309c5fd29761f5 /sample/app/main.qml | |
parent | e79d82c88e350e6b882158624363b82fe3e2d91a (diff) |
modify display/hide onscreen sequence
Diffstat (limited to 'sample/app/main.qml')
-rw-r--r-- | sample/app/main.qml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sample/app/main.qml b/sample/app/main.qml index ccce169..94de871 100644 --- a/sample/app/main.qml +++ b/sample/app/main.qml @@ -3,7 +3,7 @@ import QtQuick.Window 2.2 import QtQuick.Controls 2.0 import QtQuick.Layouts 1.0 import QtQuick.VirtualKeyboard 2.1 - +import AGL.Demo.Controls 1.0 ApplicationWindow { id: root @@ -12,7 +12,8 @@ ApplicationWindow { height: 1487 property string onsId: qsTr("onscreenapp") - property string pri_path: qsTr("/home/0/app-data/OnScreen/qml/") +// property string pri_path: qsTr("/home/0/app-data/OnScreen/qml/") + property string pri_path: qmldir property string filepath: pri_path + qsTr("vics.qml") property string msgdata: "" property string postmsg: "" @@ -354,5 +355,6 @@ ApplicationWindow { function qmlOnReplyShowWindow(text) { console.log("onstestapp received:",text); output.text = text; + eventHandler.hideWindow(onsId); } } |