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.Qt Code:
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
Do I need nested repeaters? How should I go about this?
Bookmarks