1 2 3 4 5
import QtQml QtObject { property Component c: MyItem {} property QtObject o: c.createObject() }