SomeRoot {
id: root
Repeater {
model: buttons
delegate: SomeDelegate {}
}
Component.onCompleted: {
[].slice.call(root.children, 0, root.children.length - 1).forEach(function (item) { console.warn(item.x) });
}
Repeater {
id: repeater
model: buttons
delegate: SomeDelegate {}
Component.onCompleted: {
for (var i = 0; i < repeater.count; ++i)
console.warn(repeater.itemAt(i).x);
}
}