Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.10.0
-
None
-
f2ba3bd9792500b4d3fcfd23b03098a32641ef4f, 7b8bea13e (dev), 07e0138fa (6.7), 1c7ada23e (6.6), 75512d6cd (tqtc/lts-6.5), c79309ed7 (tqtc/lts-6.2)
Description
// code placeholder import QtQuick 2.8 import Qt.labs.handlers 1.0 Item { width: 640 height: 480 Rectangle { id: rect width: 20 height: 20 radius: 10 color: "green" x: handler.point.position.x y: handler.point.position.y } Text { id: text anchors.top: rect.bottom anchors.left: rect.right text: "<" + handler.point.position.x + ", " + handler.point.position.y + "> " + handler.point.pressedButtons + " [" + handler.point.pressure + "]" } PointHandler { id: handler acceptedButtons: Qt.LeftButton | Qt.RightButton } }
Using the above if I press and hold the left mouse button then press the right mouse button, then releasing the right button stops tracking even though the left button is still pressed.
I would expect that as long as any button was pressed the handler would remain active.
Attachments
Issue Links
- is duplicated by
-
QTBUG-68120 can't get QQuickPointerHandler::pointerEvent() for second released button if you pressed two of them
-
- Closed
-
For Gerrit Dashboard: QTBUG-66360 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
220489,8 | PointHandler: stay active as long as acceptedButtons satisfied | dev | qt/qtdeclarative | Status: MERGED | -2 | 0 |
322949,3 | Fix tst_PointHandler::pressedMultipleButtons | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
323058,2 | Fix tst_PointHandler::pressedMultipleButtons | 6.0 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
524867,6 | QQuickSinglePointHandler: check isSinglePointEvent before cast | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
525944,2 | QQuickSinglePointHandler: check isSinglePointEvent before cast | 6.7 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
526008,2 | QQuickSinglePointHandler: check isSinglePointEvent before cast | 6.6 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
526103,2 | QQuickSinglePointHandler: check isSinglePointEvent before cast | tqtc/lts-6.5 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |
526243,4 | QQuickSinglePointHandler: check isSinglePointEvent before cast | tqtc/lts-6.2 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |