Details
-
Bug
-
Resolution: Done
-
P2: Important
-
6.2.5
-
None
-
0f85202699 (qt/qtdeclarative/dev) 25ab62cce5 (qt/qtdeclarative/6.4) 25ab62cce5 (qt/tqtc-qtdeclarative/6.4) 0f85202699 (qt/tqtc-qtdeclarative/dev) 25ab62cce5 (qt/qtdeclarative/6.4.1), 29a2f67a8 (dev), 5855ba626 (6.4), 978bb5085 (6.5)
Description
In 5.15, with this code, if you right-click on the Button you get the tapped signal from TapHandler:
import QtQuick 2.15 import QtQuick.Controls 2.15 Rectangle { color: dh.active ? "steelblue" : th.pressed ? "lightgreen" : "beige" Button { DragHandler { id: dh target: null onActiveChanged: print("dragging?", active) } TapHandler { id: th acceptedButtons: Qt.RightButton onTapped: print("open context menu") onCanceled: print("CANCELLED") } } }
Whereas in Qt 6 you get canceled. It seems the behavior change comes from https://codereview.qt-project.org/c/qt/qtdeclarative/+/349211
Attachments
Issue Links
- duplicates
-
QTBUG-99887 TapHandler on TextField (for showing right click context menu) stops working in Qt6
- Closed
- relates to
-
QTBUG-67331 Make it possible to react to context menu events
- In Progress
-
QTBUG-105610 should be able to add a DragHandler to a Button or other control
- Closed
- resulted from
-
QTBUG-92944 input problems in DynamicTexture example
- Closed
-
QTBUG-94012 handlers in underlying or parent items should be able to avoid reacting when a higher-z or child item already handled it
- Closed
For Gerrit Dashboard: QTBUG-105609 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
427224,10 | TapHandler: don't cancel on release | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
428237,5 | dynamic texture example: use exclusive grab on fallback TapHandler | dev | qt/qtquick3d | Status: MERGED | +2 | 0 |
439797,4 | TapHandler: don't cancel on release | 6.4 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
459317,2 | dynamic texture example: use exclusive grab on fallback TapHandler | 6.5 | qt/qtquick3d | Status: MERGED | +2 | 0 |
459318,2 | dynamic texture example: use exclusive grab on fallback TapHandler | 6.4 | qt/qtquick3d | Status: MERGED | +2 | 0 |