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

Rectangle {
    width: 50; height: childrenRect.height; color: "white"

//! [0]
    Column {
        Repeater {
            model: 10 
            Text { text: "I'm item " + index }
        }
    }
//! [0]
}