Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.7.1
-
e64535b227599b5adb8847dfda0b2516ae7e5625
Description
For this code:
ListModel { id: model Component.onCompleted: { model.append({"attrs": []}) model.get(0) model.set(0, {"attrs": [{'abc': 123, 'def': 456}] } ) print("attrs:", model.get(0).attrs.count) } }
The value of model.get(0).attrs.count is zero even though it should have changed to 2. However the value appears correctly if the first call to model.get() is removed.