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

QCursor::pos() obtains incorrect position after scaling is enabled on multiple screens

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P2: Important
    • None
    • 5.15.8, 6.6, 6.7
    • GUI: High-DPI
    • None
    • debian12 kde
    • Linux/Wayland, Linux/X11

    Description

      QT_SCALE_FACTOR=2
      After setting the screen scaling, when the program window spans two screens, the mouse moves to the second screen using QCursor::pos() to get the position incorrectly

      Attachments

        1. 2023-12-27-14-33.gif
          2023-12-27-14-33.gif
          250 kB
        2. demo.zip
          1 kB
        3. Screenshot_1.png
          Screenshot_1.png
          623 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            sorvig Morten Sørvig
            dami dami Lu
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes