| 1 |
import QtQuick 2.14 |
| 2 |
|
| 3 |
Item { |
| 4 |
Column { |
| 5 |
Repeater { |
| 6 |
model: ["apples", "oranges", "pears"] |
| 7 |
Text { |
| 8 |
id: txt |
| 9 |
required property string modelData |
| 10 |
required property int index |
| 11 |
text: modelData + index |
| 12 |
Component.onCompleted: () => {console.info(txt.text)} |
| 13 |
} |
| 14 |
} |
| 15 |
} |
| 16 |
} |