diff --git a/src/app/main.cpp b/src/app/main.cpp index 0a08a3d4c3a..6a2d518da06 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -476,6 +476,8 @@ int main(int argc, char **argv) QCoreApplication::setAttribute(Qt::AA_UseOpenGLES); #else qputenv("QSG_RHI_BACKEND", "opengl"); + QGuiApplication::setHighDpiScaleFactorRoundingPolicy( + Qt::HighDpiScaleFactorRoundingPolicy::Round); #endif if (qEnvironmentVariableIsSet("QTCREATOR_DISABLE_NATIVE_MENUBAR")