summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/declarative/repeater.qml
blob: f8ac8561bda3299a0eab6eeb6b43a3e22a1e4062 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import Qt 4.6

Rectangle {
    width: 220; height: 20; color: "white"

//! [0]
    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" }
    }
//! [0]
}