enable high dpi scaling when qt version >= 5.6.0 (#1008)

This commit is contained in:
tompollok 2017-12-05 21:51:58 +01:00 committed by Daniel Marjamäki
parent 2f861070de
commit a3bf023506
1 changed files with 5 additions and 0 deletions

View File

@ -41,6 +41,11 @@ static bool CheckArgs(const QStringList &args);
int main(int argc, char *argv[])
{
#if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0))
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
#endif
QApplication app(argc, argv);
#if QT_VERSION < 0x050000