diff --git a/src/backend.cpp b/src/backend.cpp index ac2232d..7f943f6 100644 --- a/src/backend.cpp +++ b/src/backend.cpp @@ -1037,7 +1037,13 @@ QFuture BackEnd::findAllSubtypes(const QString &nodeId, watcher->setFuture(childFuture); QObject::connect(watcher.get(), &QFutureWatcher::finished, this, [promise, watcher, childCount]() { +#if QT_VERSION < QT_VERSION_CHECK(6, 6, 0) + const auto results = watcher->future().results(); + for (const auto &res : results) + promise->addResult(res); +#else promise->addResults(watcher->future().results()); +#endif --*childCount; if (*childCount == 0) promise->finish();