115 int rowCount(const
QModelIndex &parent) const override;
122 void setSource(const
QUrl &);
134 Status status()
const;
135 qreal progress()
const;
139 void classBegin()
override;
140 void componentComplete()
override;
153#if QT_CONFIG(qml_network)
154 void requestFinished();
164 void notifyQueryStarted(
bool remoteSource);
167 static void clearRole(QQmlListProperty<QQmlXmlListModelRole> *);
174#if QT_CONFIG(qml_network)
185 QList<QQmlXmlListModelRole *> m_roleObjects;
186 QList<QFlatMap<int, QString>>
m_data;
187 bool m_isComponentComplete =
true;
190 qreal m_progress = 0;
192 int m_nextQueryIdGenerator = -1;
194 using ResultFutureWatcher = QFutureWatcher<QQmlXmlListModelQueryResult>;
195 QFlatMap<int, ResultFutureWatcher *> m_watchers;
The QQmlContext class defines a context within a QML engine.