diff --git a/src/main.cpp b/src/main.cpp index e8b7805..ad935ea 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -80,10 +80,13 @@ int main(int argc, char **argv) #if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0) && QT_VERSION < QT_VERSION_CHECK(6, 0, 0) // Account for running on high-DPI displays QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); + // Make pixmaps assume high-DPI scaling by default + QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); #endif QCoreApplication::setAttribute(Qt::AA_UseOpenGLES, true); + // Initialize application QApplication app(argc, argv); if (argc < 2) {