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. How to get rid of latency on touchscreen press events?
Forum Update on Monday, May 27th 2025

How to get rid of latency on touchscreen press events?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
evdevraspberryeventstouchscreen
1 Posts 1 Posters 745 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.
  • R Offline
    R Offline
    rrd0
    wrote on last edited by rrd0
    #1

    I'm trying to run Qt applications on a Raspberry Pi 3 that have a Waveshare LCD Touchscreen (with resistive touch) as IO. The Qt version I'm using is 5.12 and the Raspberry Pi's Operating System is Raspbian Stretch. The input driver is evdev and the touch events are being sent correctly to the OS. I'm sure of that because I ran some tests with evtest.

    Everything works fine when I use the mouse to click the widgets, but when I click them through the touch panel I have some problems.

    Touchscreen clicks are generating mouse events (as I expected) but not every event is delivered in time. MouseReleases are delivered immediately after widget releases, but MousePress events are delivered after some delay.

    If I press some widget and hold it down, then QWidget::mousePressEvent(QMouseEvent*) will be called only after ~1s.

    If I release the widget before the MousePress event, then MouseRelease will anticipate it and both will be delivered together.

    Is there a way to get rid of the MousePress event latency?

    P.S. I know I could use TouchEvents instead of MouseEvents, but MouseEvents are easier to use.

    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