Details
-
Bug
-
Resolution: Invalid
-
P2: Important
-
None
-
5.5.0
-
None
-
Qt 5.5.0
Windows 7 x32
Description
Suppose I have a ListView which uses external array as a model:
Item { property var data: [ {name: "item1"},{name: "item2"} ] ListView { model: data.length delegate: Text { text: data[index].name } } }
In my real project the array may contain subarrays so I cannot use ListModel etc. My purpose is to do that in pure QML
Now, if I want to change the data:
data[0].name = "another_name"
I have no way to update the list.
Attachments
Issue Links
- relates to
-
QTBUG-84107 Using object list (array) as a model unable to track changes
- Closed