summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativecomponent/data/createObject.qml
blob: 4ee1e75c89dc637d74633b1ffd6448a9f0c78499 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import Qt 4.7

Item{
    id: root
    property QtObject qobject : null
    property QtObject declarativeitem : null
    property QtObject graphicswidget: null
    Component{id: a; QtObject{} }
    Component{id: b; Item{} }
    Component{id: c; QGraphicsWidget{} }
    Component.onCompleted: {
        root.qobject = a.createObject(root);
        root.declarativeitem = b.createObject(root);
        root.graphicswidget = c.createObject(root);
    }
}