Add debug when skipping plugins due to new QPA version check

Change-Id: Id1fae6b455a4fa5a66bbae3d312a16b2c50d6ac0
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
(cherry picked from commit edacb741a96289280f8e4e59d13f29f796b8dd11)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Allan Sandfeld Jensen 2024-09-30 11:23:34 +02:00 committed by Qt Cherry-pick Bot
parent 164635e3b0
commit e59b65f4c1

View File

@ -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;