blob: 4a067911dfc807caddf68c8f3daa8dc652040ee9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import QtQuick 1.0
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);
}
}
|