Files correlati : cg0.exe cg0700a.msk cg0700b.msk cg3.exe cg4.exe Bug : Commento: Merge 1.0 libraries
27 lines
548 B
QML
27 lines
548 B
QML
import QtQuick 1.1
|
|
|
|
Column {
|
|
Repeater {
|
|
id: repeater
|
|
objectName: "repeater"
|
|
|
|
property int itemsCount
|
|
property variant itemsFound: []
|
|
|
|
delegate: Rectangle {
|
|
color: "red"
|
|
width: (index+1)*50
|
|
height: 50
|
|
}
|
|
|
|
onModelChanged: {
|
|
repeater.itemsCount = repeater.count
|
|
var items = []
|
|
for (var i=0; i<repeater.count; i++)
|
|
items.push(repeater.itemAt(i))
|
|
repeater.itemsFound = items
|
|
}
|
|
}
|
|
}
|
|
|