From 74233bf459e668a5e720dbd3a9eed2991c2bc17b Mon Sep 17 00:00:00 2001 From: pazos Date: Wed, 25 Apr 2018 15:36:08 +0200 Subject: [PATCH] force -platform xcb on linux --- main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.cpp b/main.cpp index a2b576a5..6dbef3f2 100644 --- a/main.cpp +++ b/main.cpp @@ -92,6 +92,10 @@ int main(int argc, char *argv[]) // disable "QApplication: invalid style override passed" warning if (isDesktop) putenv((char*)"QT_STYLE_OVERRIDE=fusion"); +#ifdef Q_OS_LINUX + // force platform xcb + if (isDesktop) putenv((char*)"QT_QPA_PLATFORM=xcb"); +#endif // // Enable high DPI scaling on windows & linux //#if !defined(Q_OS_ANDROID) && QT_VERSION >= 0x050600