I am trying to output a bunch of text from a nested collection.
Assuming a collection myCollection with value:
[[name:“Foo Barmaster”, accesshistory: [ [day: “Monday”, times:[ “5pm”,“6pm”,“9pm” ]],[day: “Tuesday”, times:[ “1pm”,“3pm”]] ]],… ]
Notice the nested collections. I intend to use this QML to output everything in the collection
Column{
Repeater {
model: *myCollection*
Text {
text: modelData.name
font.family: "Arial"
font.pixelSize: 13
}
Repeater{
model: modelData.accesshistory
Text {
text: modelData.day
font.family: "Arial"
font.pixelSize: 13 * root.wfact
}
Text {
text: modelData.times.join()
font.family: "Arial"
font.pixelSize: 12 * root.wfact
}
}
}
}
However on the 2nd layer repeater, my program just blanks. It doesn’t even give me an error.
1st level repeater works on its own well if I comment out second layer of repeater. What gives?
Are nested repeaters supported?
↧