Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Solution for detecting mouse hotplug on QT App area
Qt 6.11 is out! See what's new in the release blog

Solution for detecting mouse hotplug on QT App area

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 2 Posters 1.5k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Reden
    wrote on last edited by
    #1

    I'm finding the solution how to detect the hot-plug event on mouse device on QT application using tslib.

    I used below environment variables and it works if I connect the both device touch and mouse before the qt app executed.

    export QT_QPA_EGLFS_DISABLE_INPUT="0"
    export QT_QPA_EGLFS_TSLIB="1"
    export TSLIB_TSDEVICE="/dev/input/event1" // Touch dev
    export QT_QPA_EVDEV_MOUSE_PARAMETERS="/dev/input/event4:grab" // Mouse dev
    

    But after then, QT app doesn't recognize the mouse hot plug event.

    I figured out the "QEvdevMouseManager" does not add the the call-back for "QDeviceDiscovery::deviceDetected" if I specify the variable "QT_QPA_EVDEV_MOUSE_PARAMETERS".
    (qevdevmousemanager.cpp)

    I wonder how to make it work without the modification or patch for the qtbase(qevdevmousemanager.cpp).
    Someone have any idea?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      What version of Qt are you using ?
      On what device ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      R 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        What version of Qt are you using ?
        On what device ?

        R Offline
        R Offline
        Reden
        wrote on last edited by Reden
        #3

        @SGaist
        Hi,
        I'm using QT version 5.10.1 and imx6q yocto bsp.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          I am not sure whether both TSLIB and EVDEV can be used at the same time. Does it work if you only use EVDEV ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved