Debian Codegraph @

tests/auto/qml/qqmlproperty/data/registeredCompositeTypeProperty.qml

raw
1 import QtQuick 2.0
2 import "componentDir"
3
4 Item {
5 id: root
6
7 property FirstComponent first: FirstComponent { }
8 property FirstComponent second
9 property SecondComponent third: SecondComponent { }
10
11 property list<FirstComponent> fclist: [
12 FirstComponent {
13 a: 15
14 }
15 ]
16 property list<SecondComponent> sclistOne: [
17 SecondComponent {
18 a: "G'day, World"
19 },
20 SecondComponent { },
21 SecondComponent {
22 b: true
23 }
24 ]
25 property list<SecondComponent> sclistTwo
26
27 Component.onCompleted: {
28 var c1 = Qt.createComponent("./componentDir/FirstComponent.qml");
29 var o1 = c1.createObject(root);
30 second = o1;
31 }
32 }