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

TapHandler doesn't emit onDoubleTapped when using a touchscreen

    XMLWordPrintable

Details

    • Windows
    • 4bb230f65 (dev), 7608a0be3 (6.6), dcf9d9500 (tqtc/lts-6.5)

    Description

      Sometimes, the TabHandler doesn't emit the signal onDoubleTapped when using a touchscreen. The signal onTapped is all time emited. In my test, I respect the mouseDoubleClickInterval interval between to double tap.

      This happens with this very simple application:

      import QtQuick 2.15
      import QtQuick.Window 2.15
      
      Window {
          width: 640
          height: 480
          visible: true
          title: qsTr("Hello World")
      
          Rectangle {
      
              width: 500
              height: 500
      
      
              TapHandler {
                  id:tapHandler
                  gesturePolicy: TapHandler.ReleaseWithinBounds
      
                  onTapped:  {
                      console.debug("onTapped")
                  }
      
                  onDoubleTapped: function(eventPoint) {
                      console.debug("onDoubleTapped")
                  }
      
                  grabPermissions: PointerHandler.CanTakeOverFromAnything
              }
          }
      }
      

      As the onTapped signal is all time emitted, I use my own count and timer.

      I can't reproduce this problem with a double click from the mouse.

      Attachments

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

        Activity

          People

            srutledg Shawn Rutledge
            majuca Jean-Luc Gyger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes