Enable Qt auto scaling

fixes #397
This commit is contained in:
Konstantinos Sideris 2018-09-08 17:10:42 +03:00
parent 667ee75d66
commit 72333aec59
2 changed files with 5 additions and 0 deletions

View file

@ -109,6 +109,9 @@ main(int argc, char *argv[])
if (factor != -1)
qputenv("QT_SCALE_FACTOR", QString::number(factor).toUtf8());
if (factor == -1 || factor == 1)
qputenv("QT_AUTO_SCREEN_SCALE_FACTOR", "1");
}
#endif