ListView delegate's property is converted from an array to QQmlListModel
-
A similar thread I believe: https://forum.qt.io/topic/41710/enginio-backend-type-array-cannnot-be-converted-to-json-in-client
[...] var object = {}; object.delegateName = name; object.delegateArray = []; listView.model.append(object); [...]
The array ([]) is converted to a QQmlListModel when I try to access it it from the delegate, therefore I get this error:
TypeError: Property 'push' of object QQmlListModel(0x7fc9ad9b9340) is not a function