Unsolved ScrollView with Repeater
-
Hi Guys
I'm trying to do use Repeater width ScrollView but nothing happen. This is my code:
Item{ width: parent.width height: parent.height ScrollView{ contentItem: Item { id: name anchors.fill: parent Row{ id: row height: parent.height width: parent.width spacing: 2 Repeater{ model: ListModel{ ListElement{ ecolor: "green" } ListElement{ ecolor:"red" } ListElement{ ecolor:"yellow" } ListElement{ ecolor:"blue" } } delegate: ImageComponent{ itemColor: ecolor width: 100 height: row.height } } } } anchors.fill: parent } }
this is a peace of my code. If I put out of the ScrollView the item which is in binding with the contentItem property, The component draw correctly, but not when I use the ScrollView.
What is wrong there ??
regards