aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickloader/data/statusChanged.qml
blob: fe46bc7b2464c0e2454672704202d5dadcdeef59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import QtQuick 2.12
import QtQuick.Window 2.12

Window {
    id: root
    property int statusChangedCounter: 0
    property alias status: loader.status
    visible: true; width: 640; height: 480
    Loader {
        id: loader
        anchors.fill: parent
        asynchronous: true
        source: "./RedRect.qml"
        onStatusChanged: root.statusChangedCounter++
    }
}