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

MouseArea sensitivity for touch screens



  • I'm trying to handle double tap with MouseArea component. The problem is that onDoubleClicked signal is emmited only on tapping precisely at the same point which is very hard to do. Does anyone know the way to make MouseArea less sensitive?

    Thanks.

    UPDATE: It seems to be no ready solution, so I've stopped using onDoubleClicked and implemented double tap handling on my own.



  • As you already know the answer for this problem, I write for others.
    Since Qt 5.9, they provide an environment variable QT_DBL_TAP_DIST that allows to customize the double tap distance. And default value is 5, setting a high enough value may resolve the problem.


Log in to reply