From afbf70ed3760aa2178423d612033cb021d46515a Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Tue, 10 Oct 2023 17:58:39 +0200 Subject: [PATCH] Qt6: fix font rendering on help window --- src/kvirc/kernel/KviApplication.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/kvirc/kernel/KviApplication.cpp b/src/kvirc/kernel/KviApplication.cpp index b5047806c..0ef3ad720 100644 --- a/src/kvirc/kernel/KviApplication.cpp +++ b/src/kvirc/kernel/KviApplication.cpp @@ -234,6 +234,9 @@ KviApplication::KviApplication(int & argc, char ** argv) setPalette(style()->standardPalette()); } #endif + + // Restore Qt5-like rounding to fix HiDPI support on QWebEngine + QGuiApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::Round); } void KviApplication::setup()