Skip to content

Commit

Permalink
Call QGuiApplication::setHighDpiScaleFactorRoundingPolicy to fix ke…
Browse files Browse the repository at this point in the history
  • Loading branch information
database64128 authored and droidmonkey committed Jun 29, 2020
1 parent 05a0df7 commit 790b338
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ int main(int argc, char** argv)
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QGuiApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
#endif
#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
QGuiApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
#endif

Application app(argc, argv);
Application::setApplicationName("KeePassXC");
Expand Down

0 comments on commit 790b338

Please sign in to comment.