diff --git a/src/main.cpp b/src/main.cpp index 8060b4d..8b20c2b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -47,6 +47,11 @@ MainWindow* mainWindow; int main( int argc, char** argv ) { +#if QT_VERSION >= 0x050600 + /* Attribute Qt::AA_EnableHighDpiScaling must be set before QCoreApplication is created. */ + QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); +#endif + #if defined (USE_KDE) K4AboutData aboutdata ( "uChmViewer", QByteArray(),