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

More convenient QAIM API for QML

    XMLWordPrintable

Details

    Description

      QAbstracItemModel has already a couple of methods to access data (data, index, parent,...). Those are exposed as Q_INVOKABLEs, which helps with QML integration.

      However, roleNames() is not exposed to the meta-object system, which makes accessing a specific role of the model from QML rather inconvenient.

      It might also be worth to add some further convenience API to either QALM or at least to QML's ListModel which does not require a QModelIndex in the accessor, but only the row index as an integer and the role.

      Attachments

        Issue Links

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

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              fabiankosmale Fabian Kosmale
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes