diff --git a/src/gui/main.cpp b/src/gui/main.cpp index b1295e6c..5562f321 100644 --- a/src/gui/main.cpp +++ b/src/gui/main.cpp @@ -180,6 +180,10 @@ int main(int argc, char *argv[]){ // Enable HiDPI support qApp->setAttribute(Qt::AA_UseHighDpiPixmaps); #endif +#if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0) + // Explicitly request high dpi scaling + qApp->setAttribute(Qt::AA_EnableHighDpiScaling); +#endif // Parse arguments switch (parseCommandLine(parser, &errorMessage)) {