blob: 76c7bc2fd666e3cd73410ec303dc4b013c86daee [file] [log] [blame]
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 two
root.behaviorCount = loader.item.behaviorCount; // should be zero
}
}
Component.onCompleted: {
loader.setSource("InitialPropertyValuesComponent.qml", {"canary": 2});
}
}