Important: Please read the Qt Code of Conduct -

How to "compensate" for touch lag time?

  • I have a QML app with objects moving around the screen that I'm creating with Qt 5.4 and Qt Creator 3.3.0 and I want to be able to destroy or change an object when it's touched. When I run the app on Windows 8 and click the objects with the mouse, everything works as expected. However, when I run the same app on an Android device and touch the objects, I'm experiencing some problems due to touch lag time (i.e., a delay between the time the screen is touched and the time a signal/event is recognized by the device). This lag delay apparently occurs on every mobile device and is usually in the 50-300 msec range, depending upon the device, and also appears to vary over time based on both software and hardware factors. The problem seems to be more pronounced when the objects more more quickly. Is there any way for QML or Qt to compensate for this lag time on mobile devices? Is there anything I can do?

Log in to reply