Browse Source

Merge pull request #12273 from Kolcha/hidpif

Don't round scaling factor
adaptive-webui-19844
Mike Tzou 5 years ago committed by GitHub
parent
commit
185d8c97c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/app/main.cpp

3
src/app/main.cpp

@ -136,6 +136,9 @@ int main(int argc, char *argv[]) @@ -136,6 +136,9 @@ int main(int argc, char *argv[])
// Attribute Qt::AA_EnableHighDpiScaling must be set before QCoreApplication is created
if (qgetenv("QT_ENABLE_HIGHDPI_SCALING").isEmpty() && qgetenv("QT_AUTO_SCREEN_SCALE_FACTOR").isEmpty())
Application::setAttribute(Qt::AA_EnableHighDpiScaling, true);
// HighDPI scale factor policy must be set before QGuiApplication is created
if (qgetenv("QT_SCALE_FACTOR_ROUNDING_POLICY").isEmpty())
Application::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
#endif
try {

Loading…
Cancel
Save