height: 1487
property string onsId: qsTr("onscreenapp")
-// property string pri_path: qsTr("/home/0/app-data/OnScreen/qml/")
- property string pri_path: qmldir
+ property string pri_path: qsTr("/home/0/app-data/OnScreen/onstestapp/")
property string filepath: pri_path + qsTr("vics.qml")
property string msgdata: ""
property string postmsg: ""
ColumnLayout {
spacing: 20
- RowLayout {
- id: line1
- height: 80
- Label {
- id: guitype
- anchors.left: parent.left
- anchors.leftMargin: 10
- text: 'gui_type'
- font.pixelSize: 20
- color: '#00ADDC'
- }
-
- Label {
- text: qsTr("application")
- font.pixelSize: 20
- color: '#00ADDC'
- anchors.left: guitype.right
- anchors.leftMargin: 20
- }
- }
- RowLayout {
- id: line2
- spacing: 20
- Label {
- id: qmlpath
- anchors.left: parent.left
- anchors.leftMargin: 30
- text: qsTr("file")
- font.pixelSize: 20
- font.italic: true
- color: '#00ADDC'
- }
-
- TextInput {
- id: fpath
- text: filepath
- font.pixelSize: 20
- font.italic: true
- anchors.left: qmlpath.right
- anchors.leftMargin: 20
- color: '#00ADDC'
- cursorVisible: true
- inputMethodHints: Qt.ImhNone
- onFocusChanged: {
- console.log("filepath")
- if(fpath.focus)
- vkb.visible = true
- }
- }
- }
RowLayout {
id: line3
spacing: 20
}
function postMessage() {
- postmsg = "{\"gui\": \"application\", \"file\": \"" + filepath + "\"";
+ postmsg = "{\"file\": \"" + filepath + "\"";
if (data1.text != "") {
msgdata = "\"" + dataname1.text + "\":\"" + data1.text + "\"";
}