blob: 040924a5a4fa7406b9897b51316842f63ef5863b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
import QtQuick 2.0
Item {
id: root
property int initialValue: 0
property string serverBaseUrl;
Loader {
id: loader
objectName: "loader"
active: false
onLoaded: {
root.initialValue = loader.item.canary; // should be six
}
}
Component.onCompleted: {
loader.setSource(serverBaseUrl + "/InitialPropertyValuesComponent.qml", {"canary": 6});
loader.active = true;
}
}
|