Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Touch events in linux
Forum Updated to NodeBB v4.3 + New Features

Touch events in linux

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 487 Views 1 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.
  • Y Offline
    Y Offline
    yaronct
    wrote on last edited by
    #1

    Hi,

    I don't know if my problem is specific to Qt, but perhaps some of you have managed to program touch events in linux? My touch screen works, however when I touch the screen I get mouse events rather than touch events, even though I explicitly called:

    @QApplication::setAttribute
    (Qt::AA_SynthesizeMouseForUnhandledTouchEvents, false);
    setAttribute (Qt::WA_AcceptTouchEvents);@

    And of course reimplemented "QWidget::event" to handle touch events. The mouse cursor moves to where I touch the screen. I dunno if it's a Qt problem or something that happens at the OS level.

    I'm using Qt 5.4.0 on Debian Jessie.

    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