-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.3.1
-
None
-
-
85633bb9f (dev), b3b88f7da (6.5), 6de6f7bcd (6.6)
When a SwipeDelegate contains an item in left, right or behind that accepts mouse events (e.g. clicked on a Button), these events are forwarded to this item, when the SwipeDelegate is swiped open. This does not work when this item (e.g. Button) is nested into another item (e.g. Row). This was working fine in Qt 5.15.9.
I've attached a simple example.
import QtQuick import QtQuick.Controls Window { width: 640 height: 480 visible: true title: qsTr("Hello World") color: "black" SwipeDelegate { anchors.centerIn: parent width: 300 height: 60 contentItem: Rectangle { color: "red" } swipe.right: Row { height: parent.height anchors.right: parent.right Button { width: 100 height: parent.height text: "test 1" onClicked: console.log("This is a test1") } Button { width: 100 height: parent.height text: "test 2" onClicked: console.log("This is a test2") } } } }
| For Gerrit Dashboard: QTBUG-104904 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V |
| 493013,17 | Fix mouse event delivery issue for items within SwipeDelegate | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
| 494253,2 | Fix mouse event delivery issue for items within SwipeDelegate | 6.6 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
| 494254,2 | Fix mouse event delivery issue for items within SwipeDelegate | 6.5 | qt/qtdeclarative | Status: MERGED | +2 | 0 |