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

setHighDpiScaleFactorRoundingPolicy() policy can break showFullScreen()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.15.2, 6.2.2
    • GUI: Window management
    • Windows

    Description

      This bug interests mainly (or only) Windows with a non-integer scale factor set (tested with 125%).

      Since Qt 6 I am using a Floor or Round HighDpiScaleFactorRoundingPolicy to avoid the known painting errors caused when such a scaling factor is set (QTBUG-90975).

      Now I have realized that this appears to break the full screen behaviour.

      If I call QWidget::showFullScreen() when the rounding policy is, for instance, Floor, the widget will not fill the whole screen but only a portion of it. This doesn't happen with Qt 5, where it will fill the whole screen.

      Leaving the policy to the default value, means I get the glitches but full screen woks as expected.

      Attachments

        1. qt6.png
          qt6.png
          51 kB
        2. qt5.png
          qt5.png
          12 kB
        3. main.cpp
          0.7 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            sorvig Morten Sørvig
            hippydream Fabrizio Angius
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes