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

Positioning a window with multiple different dpi screens with high dpi scaling enabled causes unexpected behavior

    XMLWordPrintable

    Details

    • Platform/s:
      Windows

      Description

      The bug appears when dragging a window to another screen. The dragged window itself functions fairly well but when the dragged windows geometry is set to another window during that time, it will cause the second window to behave and position itself in an unexpected way.

      During the unexpected behavior "setGeometry: Unable to set geometry 24x24+-12+332 on QQuickWindow/''. Resulting geometry: 53x53+-12+332 (frame: 12, 12, 12, 12, custom margin: 0, 0, 0, 0, minimum size: 0x0, maximum size: 16777215x16777215)." is logged into Qt creator.

      This bug can be observed only when moving the window to a different dpi screen and high dpi scaling is enabled.

      To reproduce the bug run the attached project and simply drag the Main window to another screen.

       

        Attachments

        1. moved_on_same_screen.png
          moved_on_same_screen.png
          324 kB
        2. moved_to_different_screen.png
          moved_to_different_screen.png
          236 kB
        3. qt_bug.zip
          2 kB
        4. qtbug72975_qwindow.zip
          3 kB
        5. qtbug72975.zip
          3 kB
        6. qtdiag_output.txt
          8 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            • Assignee:
              qt.team.quick.subscriptions Qt Quick and Widgets Team
              Reporter:
              miikapernu Miika Pernu
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:

                Gerrit Reviews

                There are no open Gerrit changes