1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
import QtQuick 2.15 Item { width: 600 height: 480 IC2 { objectName: "icInstance" anchors.centerIn: parent } component IC2: IC1 {} component IC0: Rectangle { height: 200 width: 200 color: "blue" } component IC1: IC0 {} }