Debian Codegraph @

tests/auto/quick3d/dynamicnodecreation/data/createDynamicChild.qml

raw
1 import QtQml 2.1
2 import Qt3D.Core 2.0
3
4 Entity {
5 id: root
6 property bool success: true
7 property int value: 12345
8
9 Timer {
10 interval: 0
11 repeat: false
12 running: true
13
14 onTriggered: {
15 var factory = Qt.createComponent("dynamicEntity.qml");
16 var dynamicChild = factory.createObject(root, { "value": 27182818 });
17 }
18 }
19 }