Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

[android] Use software backend for QtQuick

Carsten Hartenfelse4918a901ca4
diff --git a/libs/ui/KisApplication.cpp b/libs/ui/KisApplication.cpp
index 4ea730e463..e737afa0b0 100644
--- a/libs/ui/KisApplication.cpp
+++ b/libs/ui/KisApplication.cpp
@@ -221,6 +221,12 @@ KisApplication::KisApplication(const QString &key, int &argc, char **argv)
: QtSingleApplication(key, argc, argv)
, d(new Private)
{
+#ifdef Q_OS_ANDROID
+ // The hardware renderer backend on Android doesn't support proper stacking,
+ // causing windows with QtQuick widgets to always stack behind everything
+ // else, including our own dialog decorations.
+ qputenv("QT_QUICK_BACKEND", "software");
+#endif
#ifdef Q_OS_MACOS
setMouseCoalescingEnabled(false);
#endif