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

QCursor::setPos fails to trigger hovers (containsMouse)

    XMLWordPrintable

Details

    • Linux/Other display system

    Description

      Hi,

      I am trying to introduce Gamepad-based controls to my application. On Linux PC (x11), using Qt 5.10.1, I have successfuly introduced the application with such controls. My approach is  using

      gamepad.mouseButtonPressed and gamepad.mouseButtonReleased (QML) for the clicks, and QCursor::setPos(x, y) (C++) for the mouse movement when gamepadMouse.mousePosition changes.

      I believe the problem is not related to gamepad-based controls, it is solely regarding QCursor::setPos function.

      This works in Qt 5.10.1 on Linux PC; but this approach makes containsMouse to not trigger on Qt 5.13.0 (Raspberry Pi 4 - EGLFS platform plugin).

      I am using the exact same code for both, one works, one don't. Therefore,  I believe this is a point where I could ask for the expert help. Thanks in advance.

      Attachments

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

        Activity

          People

            janichol Andy Nichols
            mustafa.ozcelikors MUSTAFA ÖZÇELİKÖRS
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes