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

QQuickWindow:setPosition not working correctly when crossing screens

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P1: Critical
    • Resolution: Unresolved
    • Affects Version/s: 6.2.1
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Windows 10 Pro 20H2, Screen Setup: Main Display: 1920x1080, scaling 125%, Display 2: 1920x1080, scaling 100% (on the left of the main display)
    • Platform/s:
      Windows

      Description

      In my setup I have the main HD display scaled at 125% and the HD display on the left scaled at 100%.

      I have a QQuickWindow placed on the left screen and a timer that increases its x coordinate so that eventually the window will move to the main display.

      If I use the function QQuickWindow:setPosition, I see a vertical jump and the warning "Unable to set geometry...." when the window crosses the screen,

      If I set the position using the Window api SetWindowPos, everything works fine

        Attachments

          Issue Links

          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:
              lorenzolightsgdwarf Lorenzo Lucignano
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes