Dear Qt folks,
I would like to fill a GridLayout by using a Repeater. This works as long as I have only one Element in the Repeater. However, if I am putting more than one element in the Repeater the layouting with GridLayout does not work anymore.
GridLayout {
anchors.fill: parent
columns: 4
Repeater {
model: 5
Text { text: index }
Text { text: "someting" }
Text { text: "someting" }
Text { text: "someting" }
}
}
Any suggestions how I can achieve my behaviour? Wrapping the elements inside the Repeater into an “Item” by itself does not solve the problem.
Thanks in advance and with best regards,
Markus
↧