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

macOS: mapToGlobal() is returning the wrong result when a window moves to another screen due to the primary one disconnecting

    XMLWordPrintable

Details

    • macOS

    Description

      When the primary screen is an external monitor and then this is disconnected it will cause the window to move to the other monitor and calls to mapToGlobal() afterwards are not correct as a result. In the example attached do the following:

      • Ensure the primary monitor is the external one (i.e. the one being disconnected)
      • Run the example and place it on the primary monitor
      • Click inside the window to see the menu appears correctly
      • Dismiss the window
      • Disconnect the primary monitor
      • Now click inside the window again, the menu is now offset from the mouse position

      Note that this just effects mapToGlobal(), the menu's global pos is correct.

      Attachments

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

        Activity

          People

            vhilshei Volker Hilsheimer
            andysh Andy Shaw
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes