Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
5.15.8
-
None
-
-
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
For Gerrit Dashboard: QTBUG-100688 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
516578,21 | QGuiApplication: Fix condition for when doubleclick events are triggered | dev | qt/qtbase | Status: MERGED | +2 | 0 |
519485,2 | QGuiApplication: Fix condition for when doubleclick events are triggered | 6.6 | qt/qtbase | Status: MERGED | +2 | 0 |
520378,2 | QGuiApplication: Fix condition for when doubleclick events are triggered | tqtc/lts-6.5 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |