summaryrefslogtreecommitdiffstats
path: root/examples/remoteobjects/clientapp/Plugins.qml
blob: 5273352396ff2bd82a567467a236931a6902cad1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright (C) 2017 Ford Motor Company
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

import QtQuick

Window {
    id: window
    width: 200
    height: 400
    visible: true
    property int counter: 0;
    MouseArea {
        anchors.fill: parent
        onClicked:
        {
            window.counter = (window.counter + 1) % 3;
            pageLoader.source = "plugins"+window.counter+".qml"
        }
    }
    Loader {
        id: pageLoader
        source: "plugins0.qml"
    }
}