Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Touch events in linux



  • 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.


Log in to reply