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
          after left button press.png
          6 kB
        2. after left button press 2.png
          after left button press 2.png
          7 kB
        3. after right button press.png
          after right button press.png
          4 kB
        4. bad_with_rev_248822.mkv
          5.57 MB
        5. bad_without_rev_248822.mkv
          6.40 MB
        6. expected 100.png
          expected 100.png
          5 kB
        7. expected 150.png
          expected 150.png
          10 kB
        8. inbetween 1.png
          inbetween 1.png
          8 kB
        9. qtbug72504_diag.diff
          4 kB
        10. qtbug72504.zip
          3 kB
        11. qtdiag.txt
          15 kB
        12. ScalingBug.zip
          2 kB
        13. screenmove.gif
          screenmove.gif
          1.32 MB

        Issue Links

          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: