Enable HiDpi scaling with Qt 5.6

This commit is contained in:
Daniel Molkentin 2016-01-04 11:49:03 +01:00
parent 5487fc1f9c
commit 16030a61eb

View file

@ -112,6 +112,11 @@ Application::Application(int &argc, char **argv) :
setWindowIcon( _theme->applicationIcon() );
#if QT_VERSION > QT_VERSION_CHECK(5, 0, 0)
setAttribute(Qt::AA_UseHighDpiPixmaps, true);
#endif
#if QT_VERSION > QT_VERSION_CHECK(5, 6, 0)
// this may slightly break some styles until they
// get fixed, but will make dialogs readable.
setAttribute(Qt::AA_EnableHighDpiScaling, true);
#endif
parseOptions(arguments());
//no need to waste time;