Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

Fill GridLayout with Repeater

$
0
0
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

Viewing all articles
Browse latest Browse all 4972

Trending Articles