diff --git a/src/main.cpp b/src/main.cpp index a202d2793..3b1ea22d2 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -58,6 +58,14 @@ QString hdpiConfig() { int main( int argc, char ** argv ) { +#ifdef Q_OS_LINUX + #if QT_VERSION >= 0x050600 + if (qgetenv("QT_QPA_PLATFORM").isEmpty()) { + qputenv("QT_QPA_PLATFORM", QByteArray("xcb")); + } + #endif +#endif + #ifdef HDPI_SUPPORT QString hdpi_config_path = hdpiConfig(); HDPISupport * hdpi = 0;