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

Mac: QCursor::setPos does nothing

XMLWordPrintable

    • macOS

      1. Run the sample app.
      2. Click anywhere in the window, the cursor does not move anywhere (it is supposed to go to the center).
      3. Uncommenting the line 21 in myWidget.mm produces the expected behaviour.

      It seems like calling the Cocoa function CGWarpMouseCursorPosition(...) works as expected but QCursor::setPos does nothing. Only observed on macOS 10.14.

        1. mojaveSetPos.zip
          9 kB
          Kerby Geffrard
        For Gerrit Dashboard: QTBUG-80594
        # Subject Branch Project Status CR V

            vestbo Tor Arne Vestbø
            geffrak Kerby Geffrard
            Veli-Pekka Heinonen Veli-Pekka Heinonen
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There is 1 open Gerrit change