Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. MouseArea sensitivity for touch screens

MouseArea sensitivity for touch screens

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 1.8k 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.
  • T Offline
    T Offline
    trollixx
    wrote on last edited by
    #1

    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.

    Oleg

    1 Reply Last reply
    1
    • Y Offline
      Y Offline
      Youngjin Kim
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved