aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickrepeater/data/requiredProperty.qml
blob: 80eb3c28ee0fcf09c218f715ecc5a6b6dd16e027 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import QtQuick 2.14

Item {
    Column {
        Repeater {
            model: ["apples", "oranges", "pears"]
            Text {
                id: txt
                required property string modelData
                required property int index
                text: modelData + index
                Component.onCompleted: () => {console.info(txt.text)}
            }
        }
    }
}