Debian Codegraph @

tests/auto/qml/qqmlinfo/data/NestedComponent.qml

raw
1 import QtQuick 2.0
2
3 QtObject {
4 property variant nested
5 property variant nested2: nested.nested
6
7 property variant component
8 component: Component {
9 id: myComponent
10 NestedObject { property string testProp: "test" }
11 }
12
13 property variant component2
14 component2: Component {
15 id: myComponent2
16 Image { property string testProp: "test" }
17 }
18
19 Component.onCompleted: {
20 nested = myComponent.createObject(0);
21 nested2 = myComponent2.createObject(0);
22 }
23 }