Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.9
-
775eac90e (dev), 8f78bd6ec (6.9), 82d04902e (6.8)
Description
http://doc.qt.io/qt-5/qqmllistproperty.html#details should have a code example demonstrating how to provide some of the functions that the class requires. It's extremely inconvenient to have to grep through source code to find examples of it.
Interestingly enough, the first example I found via Google uses a constructor that's not recommended for production code:
Generally this constructor should not be used in production code, as a writable QList violates QML's memory management rules. However, this constructor can be very useful while prototyping.
So an example that uses one of the other constructors (the simplest probably being this one) would be better.