Details
-
Suggestion
-
Resolution: Fixed
-
Not Evaluated
-
6.5.2
-
None
-
Windows 11 at 125% display scaling.
-
-
da473f3a8 (dev), 073340a6d (6.7), 418a5d1d4 (6.6)
Description
In a Qt 6 app running on Windows with DPI scaling enabled, if the app has a rounding policy set, radio buttons are shrunken (compared to removing the rounding policy) and missing columns/rows of pixels, and the app does not cover the full screen.
- Before creating a window, call QApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::RoundPreferFloor). Round has the same effect.
Radio buttons appear too small, and are missing columns and rows of pixels.
- After creating and showing a window, map an action like F11 to set the QMainWindow to fullscreen (windowHandle()->setWindowState(Qt::WindowFullScreen)).
The entire window fails to cover the full screen.
Test app at https://codeberg.org/nyanpasu64/scanlines.
Dolphin Emulator 5.0-19368 is on Qt 6.3.0, has a rounding policy enabled (newer versions of Dolphin do not have a rounding policy anymore), and does not have shrunken radio buttons. So perhaps this bug was introduced in a more recent version of Qt?