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

QDeclarativeXmlListModel doesn't inherit any public list model interface

XMLWordPrintable

      Existing models in QML can't be used for your own views because they don't implement any public model interface. It's stupid to create your own models when you could reuse components provided by the framework and it kind of misses the whole point of the framework.

      class MyListView : public QDeclarativeItem 
      {
          Q_OBJECT
      
          Q_PROPERTY(QAbstractItemModel* model READ model WRITE setModel NOTIFY modelChanged)
      
          ...
      }
      

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

            denexter Andrew den Exter (closed Nokia identity) (Inactive)
            ahvenlam Antti Ahvenlampi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes