aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qtquick2/qquickloader/data/active.7.qml
blob: a29e932f5e34a71ce8cd9f945b55a6f9ff5af197 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import QtQuick 2.0
Rectangle {
    id: root
    color: "blue"
    width: 100; height: 100
    property bool success: true

    Loader {
        active: false
        anchors.fill: parent
        sourceComponent: Rectangle { color: "red" }
        onLoaded: { root.success = false; } // shouldn't be triggered if active is false
    }
}