Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
5.14.2
-
None
Description
Docs for Repeater states that list of strings/objects could be used as a model:
https://doc.qt.io/qt-5/qml-qtquick-repeater.html#delegate-prop
I would like to extend the example with dynamic creation and addition of randomly spawned rectangles. In order to do that I'm adding and removing elements to my object list model.
However the Repeater doesn't track these changes
It's possible to force re-assignment of the model property and it makes Repeater react to these assignments but it definitely doesn't make what's expected – all the objects handled by Repeater are destroyed and new ones are created, instead of adding or removing just one.
Attachments
Issue Links
- duplicates
-
QTBUG-82926 QML components which have model / delegate reset when model is updated
- Reported
-
QTBUG-12117 Add support for JS arrays in ListModel
- Open
- relates to
-
QTBUG-49983 Using a JavaScript Array of JS Objects as an itemview model doesn't work as expected
- Reported
-
QTBUG-69771 Functions in QML model data not accessible
- Open
-
QTBUG-48981 ListView should support javascript arrays
- Closed
-
QTBUG-79263 Provide a replace function for QQmlListProperty
- Closed