From 26ec4eb42bb22240d53b588366fae832b5764d34 Mon Sep 17 00:00:00 2001 From: Le Tan Date: Tue, 23 Oct 2018 20:45:45 +0800 Subject: [PATCH] try fix the blur issue of toolbar icon on macOS --- src/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index cf81a5b8..51408629 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -130,6 +130,8 @@ int main(int argc, char *argv[]) // Set openGL version. // Or set environment QT_OPENGL to "angle/desktop/software". // QCoreApplication::setAttribute(Qt::AA_UseOpenGLES, true); + QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); + QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); QApplication app(argc, argv);