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

Moving QML window between screens with different DPI breaks QML layout and size

    XMLWordPrintable

Details

    • Windows
    • dc753374478d751c7c124030429e90d058934f9f (qt/qtbase/5.12)

    Description

      The attached minimal example does not behave properly in an environment like this one:

      Two regular ("low-dpi") screens, left one set to 150% scaling, right one set to 100% scaling in Windows 10.

      Run the program and drag the window around, in particular close to the screen borders. You will notice that depending on where the window is dragged, resizing of the window happens at a different position than resizing of its content, leading to e.g. 150% scaled content but 100% window size.

      It gets more interesting when manipulating the coordinates from within QML: Use the Left and Right buttons on the GUI to move the window left and right while it's close to the screen borders. The GUI gets completely broken now, as seen in the screenshots.

      Attachments

        1. after left button press.png
          6 kB
          Johannes Schultz
        2. after left button press 2.png
          7 kB
          Johannes Schultz
        3. after right button press.png
          4 kB
          Johannes Schultz
        4. bad_with_rev_248822.mkv
          5.57 MB
          Alvin Wong
        5. bad_without_rev_248822.mkv
          6.40 MB
          Alvin Wong
        6. expected 100.png
          5 kB
          Johannes Schultz
        7. expected 150.png
          10 kB
          Johannes Schultz
        8. inbetween 1.png
          8 kB
          Johannes Schultz
        9. qtbug72504_diag.diff
          4 kB
          Friedemann Kleint
        10. qtbug72504.zip
          3 kB
          Friedemann Kleint
        11. qtdiag.txt
          15 kB
          Johannes Schultz
        12. ScalingBug.zip
          2 kB
          Johannes Schultz
        13. screenmove.gif
          1.32 MB
          Johannes Schultz

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              kleint Friedemann Kleint
              j_schultz Johannes Schultz
              Votes:
              7 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes