Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
5.2.1
-
None
Description
A QList<int> or QList<real> etc. cannot be used as a model for a ListView or a Repeater in QML, although they are supposed to be supported as JavaScript Array types (according to http://qt-project.org/doc/qt-5/qtqml-cppintegration-data.html#sequence-type-to-javascript-array), which CAN be used as a model.
QList<QObject*> or QStringList work as models, but not these other more basic types.
Attachments
Issue Links
- is replaced by
-
QTBUG-12117 Add support for JS arrays in ListModel
- Open