do not enable HighDpiScaling from QT

This commit is contained in:
Le Tan 2018-10-27 10:03:34 +08:00
parent 553b2b08a3
commit bd16ae27c0

View File

@ -131,7 +131,10 @@ int main(int argc, char *argv[])
// 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_UseHighDpiPixmaps);
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
// This only takes effect on Win, X11 and Android.
// It will disturb original scaling. Just disable it for now.
// QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QApplication app(argc, argv); QApplication app(argc, argv);