From e59b65f4c16c7184cb5cb5dfde220ba4d6ce2cce Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Mon, 30 Sep 2024 11:23:34 +0200 Subject: [PATCH] Add debug when skipping plugins due to new QPA version check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Id1fae6b455a4fa5a66bbae3d312a16b2c50d6ac0 Reviewed-by: Tor Arne Vestbø (cherry picked from commit edacb741a96289280f8e4e59d13f29f796b8dd11) Reviewed-by: Qt Cherry-pick Bot --- src/corelib/plugin/qfactoryloader.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/corelib/plugin/qfactoryloader.cpp b/src/corelib/plugin/qfactoryloader.cpp index 4269fd856cb..10f47fe750a 100644 --- a/src/corelib/plugin/qfactoryloader.cpp +++ b/src/corelib/plugin/qfactoryloader.cpp @@ -352,8 +352,10 @@ inline void QFactoryLoaderPrivate::updateSinglePath(const QString &path) int thisVersion = library->metaData.value(QtPluginMetaDataKeys::QtVersion).toInteger(); if (iid.startsWith(QStringLiteral("org.qt-project.Qt.QPA"))) { // QPA plugins must match Qt Major.Minor - if (thisVersion != QtVersionNoPatch) + if (thisVersion != QtVersionNoPatch) { + qCDebug(lcFactoryLoader) << "Ignoring QPA plugin due to mismatching Qt versions" << QtVersionNoPatch << thisVersion; continue; + } } int keyUsageCount = 0;