继承与Item,用于创建显示大量相同控件,https://blog.csdn.net/qq_26611129/article/details/113933202
属性
//元素个数
count : int
//代理
delegate : Component
//模型
model : any
*A number that indicates the number of delegates to be created by the repeater
*A model (e.g. a ListModel item, or a QAbstractItemModel subclass)
*A string list
*An object list
Repeater{
// model: 3 //模型 数字:表示有几个模型/控件
// Rectangle{
// y: index * 50
// width: 100
// height: 40
// border.width: 1
// color: "yellow"
// }
//数量3 读取list的大小
model: ["button", "rectangle", "mousearea"]
Button{
y: index *50
width:100
height: 40
text: modelData + " " + index
}
}