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

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]
}