aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qtquick2/qquickloader/data/initialPropertyValues.5.qml
blob: 03ee599aba19b2d3b000ba62bee0c2c63fedfd64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import QtQuick 2.0

Item {
    id: root
    property int initialValue: 0
    property int behaviorCount: 0

    Loader {
        id: loader
        objectName: "loader"
        onLoaded: {
            root.initialValue = loader.item.canary;         // should be zero, but no error
            root.behaviorCount = loader.item.behaviorCount; // should be zero
        }
    }

    Component.onCompleted: {
        loader.setSource("InitialPropertyValuesComponent.qml");
    }
}