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

globalPos is wrong on a HDPI display located at the left of Main Monitor on Windows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P2: Important
    • None
    • 5.9.1
    • None

    Description

      If I use event->globalPos() in a MousePress while the click happened on the display at the left of Windows "Main Monitor" (negative X coordinate) and my main display is HDPI, the value is wrong. QCursor pos() is ok.

      It also happens if I use widget->mapToGlobal(QPoint(...))

      Attachments

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

        Activity

          People

            sorvig Morten Sørvig
            mabeghin Matthieu B.
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes