Use Qt::HighDpiScaleFactorRoundingPolicy::PassThrough

It will be the default in Qt6 and respecting the scale factor that the user sets is the right thing to do.
This commit is contained in:
Luis Ángel San Martín 2022-03-12 11:51:29 +01:00
parent f27de78fe1
commit 9e9f035f35
2 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,6 @@ int main(int argc, char *argv[])
}
QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
QApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
#if defined(_MSC_VER) && defined(_DEBUG)

View File

@ -126,6 +126,7 @@ int main(int argc, char **argv)
}
QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
QApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
QApplication app(argc, argv);