aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlcomponent/data/createObjectClean.qml
blob: 10c2c11bfbfb4f3bf70620c0faa83cd92f65423e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import QtQml

QtObject {
    id: self

    property Component t: Component {
        id: t
        QtObject {}
    }
    property QtObject a: t.createObject()
    property QtObject b: t.createObject(null)
    property QtObject c: t.createObject(self)
    property QtObject d: t.createObject(self, ({objectName: "foo"}))
}