#ifndef MODELFUTUREWATCHER_H #define MODELFUTUREWATCHER_H #include #include template class ModelFutureWatcher : public QFutureWatcher { public: ModelFutureWatcher(const QModelIndex& index, QObject* parent = nullptr) : QFutureWatcher(parent), index_(index) {} ~ModelFutureWatcher() {} const QPersistentModelIndex& index() const { return index_; } private: QPersistentModelIndex index_; }; #endif