Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
4.7.3
-
None
Description
The documentation for QDeclarativeListProperty and ownership is not clear, it is implied that the ownership of the contents of this list will be Javascript if the QML calls a function that creates the objects and populates the list that is returned.
Generally having an example and more clear documentation on how to use this class correctly would be good.
I have attached the example I used to illustrate this, the fact I have to do:
myObject.getInfo = [];
to get it to clear seems to indicate that it is not owned by Javascript.