summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qmlecmascript/data/dynamicCreation.qml
blob: ef39590473683dac62ce314ba10ac5516891a428 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import Qt.test 1.0

MyQmlObject{
    id: obj
    objectName: "obj"
    function createOne()
    {
        obj.objectProperty = createQmlObject('import Qt.test 1.0; MyQmlObject{objectName:"objectOne"}', obj);
    }

    function createTwo()
    {
        var component = createComponent('dynamicCreation.helper.qml');
        obj.objectProperty = component.createObject();
    }
}