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

[REG 5.15.9 -> 6.3.1] SwipeDelegate does not forward mouse events to nested items in left, right, behind

XMLWordPrintable

    • Linux/X11, Linux/Yocto, macOS, Windows
    • 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")
            }
          }
        }
      }
      

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

            santhoshkumar Santhosh Kumar Selvaraj
            jschwers Jan Schwers
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes