Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-115954

On Qt 6, with DPI rounding policy enabled, fullscreen doesn't cover entire screen

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Fixed
    • Not Evaluated
    • 6.6.2, 6.7.0 Beta2, 6.8.0 FF
    • 6.5.2
    • QPA: Windows
    • None
    • Windows 11 at 125% display scaling.

    • Windows
    • 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?

      Attachments

        1. qt fullscreen bug.png
          qt fullscreen bug.png
          88 kB
        2. qt spinbox glitch.png
          qt spinbox glitch.png
          4 kB
        3. qt spinbox ok.png
          qt spinbox ok.png
          4 kB
        4. screen-2023-09-19-14-32-50.png
          screen-2023-09-19-14-32-50.png
          1.72 MB
        5. screen-2023-09-19-14-33-42.png
          screen-2023-09-19-14-33-42.png
          1.84 MB
        6. screen-2023-09-19-14-34-15.png
          screen-2023-09-19-14-34-15.png
          1.63 MB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            timothee.keller Timothée Keller
            nyanpasu64 Nyan Pasu
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes