aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/models/objectlistmodel/view.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/quick/models/objectlistmodel/view.qml')
-rw-r--r--examples/quick/models/objectlistmodel/view.qml15
1 files changed, 15 insertions, 0 deletions
diff --git a/examples/quick/models/objectlistmodel/view.qml b/examples/quick/models/objectlistmodel/view.qml
new file mode 100644
index 000000000..b7cf68a9b
--- /dev/null
+++ b/examples/quick/models/objectlistmodel/view.qml
@@ -0,0 +1,15 @@
+// Copyright (C) 2021 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
+
+import QtQuick
+
+ListView {
+ width: 100; height: 100
+
+ delegate: Rectangle {
+ color: model.modelData.color
+ height: 25
+ width: 100
+ Text { text: model.modelData.name }
+ }
+}