Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-71469

TapHandler doubleTapped incorrectly emitted from the mouse or touchpad

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Duplicate
    • Affects Version/s: 5.12.0 Beta 3
    • Fix Version/s: 5.12.0 RC
    • Labels:
      None
    • Environment:
      Dell XPS 15 9560
      Microsoft Windows 10 Pro (Version 10.0.17134 Build 17134)
    • Platform/s:
      Windows
    • Commits:
      c0538857358e57c1551f7d10c07a9bb80d848cd7

      Description

      With the following code:

      Rectangle {
          id: rectangle
      
          implicitWidth: 200
          implicitHeight: 200
          color: "#FFE082"
      
          TapHandler {
              id: tapHandler
      
              onTapped: console.debug("onTapped")
              onSingleTapped: console.debug("onSingleTapped")
              onDoubleTapped: console.debug("onDoubleTapped")
              onLongPressed: console.debug("onLongPressed")
              onCanceled: console.debug("onCanceled")
          }
      }
      

      doubleTapped will be correctly emitted only with touch screen.

      With the mouse doubleTapped is emitted after 3 clicks.

      It does not work with touchpad (with normal clicks or light touch taps) too.

       

        Attachments

          Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              • Assignee:
                anrocha André De La Rocha
                Reporter:
                permotion88 Karol Polak
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes