Row {
Rectangle { width: 10; height: 20; color: "red" }
Repeater {
model: 10
Rectangle { width: 20; height: 20; radius: 10; color: "green" }
}
Rectangle { width: 10; height: 20; color: "blue" }
}
Row {
Rectangle { width: 10; height: 20; color: "red" }
Repeater {
model: 10
Rectangle { width: 20; height: 20; radius: 10; color: "green" }
}
Rectangle { width: 10; height: 20; color: "blue" }
}
To copy to clipboard, switch view to plain text mode
Here I want the color of each middle rectangle to be selected from a list. i.e. Each color has to be different rather than all being green.
Do I need nested repeaters? How should I go about this?
Bookmarks