Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Forum Updated on Feb 6th

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

    Mobile and Embedded
    1
    2
    5839
    Loading More Posts
    • 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
      mbarclaygmail.com last edited by

      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 Reply Quote 0
      • M
        mbarclaygmail.com last edited by

        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 Reply Quote 0
        • First post
          Last post