summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qmlvisual/qdeclarativepositioners/usingRepeater.qml
blob: c318a99b7553a60355fbd2836d204129fcbcdad2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import QtQuick 1.0

Item{
    width: 200; height: 600
    Column{
        Rectangle{color:"Red"; width:40; height:40;}
        Repeater{
            id: rep
            model: 3
            delegate: Component{Rectangle{color:"Green"; width:40; height:40; radius: 20;}}
        }
        Rectangle{color:"Blue"; width:40; height:40;}
    }
    Timer{ interval: 500; running: true; onTriggered: rep.model=6;}
}