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

Full screen window doesn't handle DPI factor decrement

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.15.2, 6.0.3, 6.1.0 Beta3
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      The easiest way to reproduce is to have 2 monitors. Move the test application to the second one, put the DPI settings dialog on the first one. This way the application is not being obstructed and you can easily see the issue.
    • Platform/s:
      Windows

      Description

      Steps to reproduce:

      1. Set the DPI scale on the monitor to 100%
      2. Start the attached demo application (or virtually any QWidget-based example application)
      3. Put the window into full screen (Toggle full screen mode button)
      4. Set the DPI scale on the monitor to 150%
      5. Set the DPI scale on the monitor to 100% again

      Expected result: the window resizes properly

      Actual result: the window has the same size as it was on 150% and put to the top left corner of the screen. The widgets are not re-drawn until I hover over them. In addition, the window falls into a "half-full screen" state when it doesn't have a `Qt::WindowFullScreen` flag, but it can't be resized (and other normal-state stuff doesn't work, e.g. handling WM_NCHITTEST to tell where the window can be resized etc.). It can only be brought back to normal if I call `showFullScreen()` and `showNormal()` again.

      Even Qt Creator breaks (see video "2021-04-14 14-11-56.mp4")

        Attachments

        1. 2021-04-14 14-04-23.mp4
          1.91 MB
        2. 2021-04-14 14-11-56.mp4
          4.02 MB
        3. RepaintTest.zip
          2 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            sorvig Morten Sørvig
            Reporter:
            tomikaa87qt Tamas Karpati
            PM Owner:
            Veli-Pekka Heinonen Veli-Pekka Heinonen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes