Skip to content

Commit

Permalink
[Gui] fix HiDPI rounding bug
Browse files Browse the repository at this point in the history
  • Loading branch information
donovaly authored and wwmayer committed Mar 10, 2021
1 parent 159a71b commit f4574cf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Gui/Application.cpp
Expand Up @@ -1937,6 +1937,9 @@ void Application::runApplication(void)
else {
// Enable automatic scaling based on pixel density of display (added in Qt 5.6)
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
#if QT_VERSION >= QT_VERSION_CHECK(5,14,0)
QGuiApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
#endif
}
#endif // QT_VERSION >= 0x050600

Expand Down

0 comments on commit f4574cf

Please sign in to comment.