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.5 Task-number: QTBUG-108796 Change-Id: I040e9c0932bbf1f9026b365ded462c7373b219b5 Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Axel Spoerl <axel.spoerl@qt.io> (cherry picked from commit f7519a89d27de7e473bb864cb377aa679c619c0c) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
1f4460cb1f
commit
3516539945
@ -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…
x
Reference in New Issue
Block a user