aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qtquick2/qquickitem2/data/childrenRect.qml
blob: ebc57aefbe2cc9d8132afb89a925c465ab0d0ebc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import QtQuick 2.0

Rectangle {
    width: 400
    height: 400

    property int childCount: 0;

    Item {
        objectName: "testItem"
        width: childrenRect.width
        height: childrenRect.height

        Repeater {
            id: repeater
            model: childCount
            delegate: Rectangle {
                x: index*10
                y: index*20
                width: 10
                height: 20

                color: "red"
            }
        }
    }
}