ArchInterface.qml
Control {
id: content
default property alias contentChildren: content.data // 内部的元素, 由子模块去实现
backgroud: Rectangle {
color: "transparent"
anchor.fill: parent
}
}
应用:
AppModule.qml
Item {
ArchInterface {
Rectangle {
id: firstChild
}
Rectangle {
id: secondChild
}
Rectangle {
id: thirdChild
}
}
}
标签:default,xxx,alias,qml,property,id,Rectangle From: https://www.cnblogs.com/henryliublog/p/17727707.html