try fix the blur issue of toolbar icon on macOS

This commit is contained in:
Le Tan 2018-10-23 20:45:45 +08:00
parent 29c1c346a4
commit 26ec4eb42b

View File

@ -130,6 +130,8 @@ int main(int argc, char *argv[])
// Set openGL version. // Set openGL version.
// Or set environment QT_OPENGL to "angle/desktop/software". // Or set environment QT_OPENGL to "angle/desktop/software".
// QCoreApplication::setAttribute(Qt::AA_UseOpenGLES, true); // QCoreApplication::setAttribute(Qt::AA_UseOpenGLES, true);
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QApplication app(argc, argv); QApplication app(argc, argv);