GUI: give more warning when can't load xcb since 6.5.0
normally because new depedency of xcb-cursor0 or libxcb-cursor0 is missing. Pick-to: 6.6 6.5 Task-number: QTBUG-108796 Change-Id: I040e9c0932bbf1f9026b365ded462c7373b219b5 Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>bb10
parent
737dd95950
commit
f7519a89d2
|
|
@ -1248,6 +1248,10 @@ static void init_platform(const QString &pluginNamesWithArguments, const QString
|
|||
QGuiApplicationPrivate::platform_integration = QPlatformIntegrationFactory::create(name, arguments, argc, argv, platformPluginPath);
|
||||
if (Q_UNLIKELY(!QGuiApplicationPrivate::platform_integration)) {
|
||||
if (availablePlugins.contains(name)) {
|
||||
if (name == QStringLiteral("xcb") && QVersionNumber::compare(QLibraryInfo::version(), QVersionNumber(6, 5, 0)) >= 0) {
|
||||
qCWarning(lcQpaPluginLoading).nospace().noquote()
|
||||
<< "From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platform plugin.";
|
||||
}
|
||||
qCInfo(lcQpaPluginLoading).nospace().noquote()
|
||||
<< "Could not load the Qt platform plugin \"" << name << "\" in \""
|
||||
<< QDir::toNativeSeparators(platformPluginPath) << "\" even though it was found.";
|
||||
|
|
|
|||
Loading…
Reference in New Issue