34 Q_CLASSINFO("DefaultProperty", "
delegate")
39 QAbstractItemModel *
model() const;
45 QObject *
itemForIndex(const QModelIndex &index) const override;
51 void modelDestroyed();
52 void rowsInserted(const QModelIndex &parent,
int first,
int last);
53 void rowsAboutToBeRemoved(const QModelIndex &parent,
int first,
int last);
60 QObject *createItems(const QModelIndex &index, QObject *parent);
61 void removeItems(const QModelIndex &index, QObject *parent);
63 QAbstractItemModel *m_model;
64 QQmlComponent *m_delegate;
65 QHash<QPersistentModelIndex, QObject *> m_createdItems;
67 QList<QObject *> m_rootItems;