Add debug when skipping plugins due to new QPA version check

Pick-to: 6.8
Change-Id: Id1fae6b455a4fa5a66bbae3d312a16b2c50d6ac0
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
This commit is contained in:
Allan Sandfeld Jensen 2024-09-30 11:23:34 +02:00
parent 3de914eef5
commit edacb741a9

View File

@ -352,8 +352,10 @@ inline void QFactoryLoaderPrivate::updateSinglePath(const QString &path)
int thisVersion = library->metaData.value(QtPluginMetaDataKeys::QtVersion).toInteger(); int thisVersion = library->metaData.value(QtPluginMetaDataKeys::QtVersion).toInteger();
if (iid.startsWith(QStringLiteral("org.qt-project.Qt.QPA"))) { if (iid.startsWith(QStringLiteral("org.qt-project.Qt.QPA"))) {
// QPA plugins must match Qt Major.Minor // 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; continue;
}
} }
int keyUsageCount = 0; int keyUsageCount = 0;