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

[Windows] QWindow::mapToGlobal() provides the wrong result if the window is embedded in a native window which also has a parent

    XMLWordPrintable

Details

    •  2f5c2ec12f3c45a0806b5872c206a680e9fce014 (qtbase/5.5, 18.2.2015) fa2aef5eb8f1a28a79e253a006f348e62afef58a (qtbase/5.7, 31.8.2016, 5.7.1)

    Description

      [Windows] QWindow::mapToGlobal() provides the wrong result if the window is embedded in a native window which also has a parent. Currently the code will only check for the parent and if that is a native parent it will then call ScreenToClient() on that to get the offset. However if that is a child of another native window, then this will only give a position relative to that parent. Not to the desktop and therefore not global.

      Attachments

        1. qtbug43252.zip
          2 kB
        2. qtbug43252.zip
          2 kB

        Issue Links

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

          Activity

            People

              kleint Friedemann Kleint
              andysh Andy Shaw
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: