aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickview_extra/data/qtbug_87228.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/quick/qquickview_extra/data/qtbug_87228.qml')
-rw-r--r--tests/auto/quick/qquickview_extra/data/qtbug_87228.qml30
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/auto/quick/qquickview_extra/data/qtbug_87228.qml b/tests/auto/quick/qquickview_extra/data/qtbug_87228.qml
new file mode 100644
index 0000000000..ff10eba23d
--- /dev/null
+++ b/tests/auto/quick/qquickview_extra/data/qtbug_87228.qml
@@ -0,0 +1,30 @@
+import QtQml 2.12
+import QtQml.Models 2.12
+import QtQuick 2.12
+
+Item {
+ height: 480
+ width: 320
+ Rectangle {
+ id: rootRect
+
+ function addItem(desc) {
+ myModel.append({"desc": desc});
+ }
+
+ Rectangle {
+ ListView {
+ objectName: "listView"
+ delegate: Text {
+ required property string desc
+ text: desc
+ }
+ model: ListModel { id: myModel }
+ }
+ }
+
+ Component.onCompleted: {
+ addItem("Test creation of a delegate with a property");
+ }
+ }
+}