I think you need to implement it using ListModel
Item {
id: personButtonBasis
ListModel {
id: buttonModel
ListElement {
text: "Button 1"
}
ListElement {
text: "Button 2"
}
ListElement {
text: "Button 3"
}
ListElement {
text: "Button 4"
}
}
Grid {
id: dataTextGrid
columns: 3
Repeater {
id: dataFieldRepeater
model: buttonModel
Text {
text: model.text
}
}
}
}
Item {
id: personButtonBasis
ListModel {
id: buttonModel
ListElement {
text: "Button 1"
}
ListElement {
text: "Button 2"
}
ListElement {
text: "Button 3"
}
ListElement {
text: "Button 4"
}
}
Grid {
id: dataTextGrid
columns: 3
Repeater {
id: dataFieldRepeater
model: buttonModel
Text {
text: model.text
}
}
}
}
To copy to clipboard, switch view to plain text mode
Bookmarks