2 * Copyright (c) 2017 TOYOTA MOTOR CORPORATION
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 import QtQuick.Window 2.2
19 import QtQuick.Layouts 1.1
20 import QtQuick.Controls 2.0
21 import AGL.Demo.Controls 1.0
25 flags: Qt.FramelessWindowHint
33 function qmlLoader(url) {
34 console.log(qsTr('onscreenapp >>> qmlLoader load ' + url));
35 osLoader.source = url;
38 function qmlOnScreenParameter(text) {
39 console.log(qsTr('onscreenapp >>> qmlOnScreenParameter.' + text));
40 if (osLoader.status == Loader.Ready) {
41 // call qmlOnScreenParameter in qml to post parameter which from application
42 if (osLoader.item && osLoader.item.qmlOnScreenParameter) {
43 osLoader.item.qmlOnScreenParameter(text);
47 console.log("osLoader.status is not ready")
52 objectName: "loaderObject"
54 anchors.centerIn: parent
55 width: childrenRect.width
56 height: childrenRect.height