aboutsummaryrefslogtreecommitdiffstats
path: root/tests/testapplications/elements/content/elements.js
blob: c4108126cb784596b6659ab2e9905b3e1f6dba0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

var newcomponent = Qt.createComponent("AppContainer.qml");
var appfile;
var demoapp;


function setapp(appname,par) {
    appfile = appname;
    demoapp = newcomponent.createObject(par);
    demoapp.qmlfile = appfile;
}


function removeApp() {
    demoapp.destroy();
}