tests/auto/quick/qquickrepeater/data/objectmodel.qml
raw| 1 | import QtQuick 2.0 |
| 2 | import QtQml.Models 2.1 |
| 3 | |
| 4 | Row { |
| 5 | width: 360 |
| 6 | height: 360 |
| 7 | |
| 8 | Repeater { |
| 9 | objectName: "repeater" |
| 10 | model: ObjectModel { |
| 11 | Rectangle { |
| 12 | width: 20 |
| 13 | height: 20 |
| 14 | color: "red" |
| 15 | } |
| 16 | Rectangle { |
| 17 | width: 20 |
| 18 | height: 20 |
| 19 | color: "green" |
| 20 | } |
| 21 | Rectangle { |
| 22 | width: 20 |
| 23 | height: 20 |
| 24 | color: "blue" |
| 25 | } |
| 26 | } |
| 27 | } |
| 28 | } |