summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/declarative/repeater.qml
blob: c8f9f18564f45a79ab49216ecf2e253ccb58549c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//! [0]
Rect { width: 220; height: 20; color: "white"
    Component { id: Dot
        Rect { width: 20; height: 20; radius: 10; color: "green" }
    }
    HorizontalLayout {
        Rect { width: 10; height: 20; color: "red" }
        Repeater { component: Dot; dataSource: 10 }
        Rect { width: 10; height: 20; color: "blue" }
    }
}
//! [0]