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

ListView/Flickable: when releasing multitouch, list stays in dragging state

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 6.2.1, 6.3.0 Alpha
    • 5.15.2
    • Quick: Other
    • None
    • f91aa3b4d8ae7bfba65a8252099ded3b428f7acf (qt/qtdeclarative/dev) 0533725c60198aeced54ad53454a09a3b3691394 (qt/qtdeclarative/6.1) 5e757ec83be58357e1ed9c673a83304096171e7a (qt/qtdeclarative/6.2)

    Description

      To test this locally, I moved the listview with the left mouse, then while pressing, pressed right mouse additionally. Then released left and afterwards right mouse. The mouse area is still active as the listview is still in dragging state although both mouse clicks were released. 

      ListView { 
          id: tstlist 
          orientation: ListView.Horizontal 
          spacing: 20 
          model: ListModel { 
                   ListElement { name: "Bill Smith"; number: "555 3264" } 
                   ListElement { name: "John Brown"; number: "555 8426" } 
                   ListElement { name: "Sam Wise"; number: "555 0473" } 
                   ListElement { name: "Bill Smith"; number: "555 3264" } 
                   ListElement { name: "John Brown"; number: "555 8426" } 
                   ListElement { name: "Sam Wise"; number: "555 0473" } 
                   ListElement { name: "Bill Smith"; number: "555 3264" } 
                   ListElement { name: "John Brown"; number: "555 8426" } 
                   ListElement { name: "Sam Wise"; number: "555 0473" } 
          } 
          width: 1000 
          height: 200 
          delegate: Rectangle { 
              width: 200 
              height: 200 
              color: tstlist.dragging ? "white":"blue"         Text { text: name + "..." + number } } 
          onDraggingChanged: { 
              console.error("dragging:" + dragging) 
          } 
      } 
      MouseArea { 
          anchors.fill: tstlist 
          Rectangle { color:"red"; opacity: 0.2; anchors.fill: parent } 
          visible: tstlist.dragging 
      }
      

      Attachments

        1. simpler.qml
          0.3 kB
        2. test.qml
          2 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            lisa.philipp Lisa Philipp
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes