blob: 4ca6b68cf8ef1579891a0336ce84b62a0aeebc34 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
import QtQuick 2.0
Item {
id: root
property bool success: false
Component {
id: internalComponent
Item {
id: internalRoot
property string foo: ''
Component.onCompleted: { internalRoot.foo = 'bar' }
Component.onDestruction: { root.success = (internalRoot.foo == 'bar') }
}
}
function createObject()
{
internalComponent.createObject();
}
Component.onCompleted: {
createObject()
}
}
|