Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-38403

QList Cannot Be Used as Model in QML

XMLWordPrintable

      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.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Unassigned Unassigned
            emagnuson Eric Magnuson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes