Details
-
Suggestion
-
Resolution: Done
-
P2: Important
-
None
-
None
Description
It needs to be made more obvious which types can be stored in QQmlListProperty. Specifically, this note should be higher up, probably part of the first sentence:
Note: QQmlListProperty can only be used for lists of QObject-derived object pointers.
It should be mentioned that the type passed as the template argument when declaring the QQmlListProperty should not be a pointer to the QObject-derived class, but the plain type.
The above would probably not be necessary if there was an example of usage beyond the Q_PROPERTY definition in the detailed description. Having this example in the See Also section would also help, although that example doesn't go into the details of providing your own append, etc., functions.