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. [Solved] Getting simultaneous touch and mouse events in Qt/QML
QtWS25 Last Chance

[Solved] Getting simultaneous touch and mouse events in Qt/QML

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 1 Posters 6.1k Views
  • 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.
  • M Offline
    M Offline
    mbarclaygmail.com
    wrote on last edited by
    #1

    Hello,

    My app works great with either touchscreen or mouse, but not both. Is it possible to have both?

    To run with a USB mouse:
    @
    export QWS_MOUSE_PROTO=IntelliMouse:/dev/input/mouse1
    ./myApp -qws
    @

    To run with touchscreen:
    @
    export QWS_MOUSE_PROTO=tslib:/dev/input/event0
    ./myApp -qws
    @

    The docs say you can specity multiple devices with QWS_MOUSE_PROTO, but this does not work:
    @
    export QWS_MOUSE_PROTO="tslib:/dev/input/event0
    IntelliMouse:/dev/input/mouse1"
    ./myApp -qws
    @

    Is there a way to make a mouse and touchscreen work at the same time?

    Thanks,
    Matt

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mbarclaygmail.com
      wrote on last edited by
      #2

      heh, don't take the docs too literally! They say to use a line break in the environment variable, but it only works with a single space!!

      @
      export QWS_MOUSE_PROTO="tslib:/dev/input/event0 IntelliMouse:/dev/input/mouse1"
      ./myApp -qws
      @

      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