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

SwipeDelegate does not lose focus if Flickable.StopAtBounds

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.7.2
    • 5.7.0
    • Quick: Controls 2
    • None
    • 9812a9cc1e71b0a3d8f25c0db2457f8673e53054

    Description

      I have a simple code

      import QtQuick 2.6
      import QtQuick.Window 2.2
      import QtQuick.Controls 2.0
      
      Window {
          visible: true
          width: 640
          height: 480
          title: qsTr("Hello World")
      
          ListView {
              anchors.fill: parent
              model: Qt.fontFamilies()
              delegate: SwipeDelegate {
                  text: modelData
                  onClicked: console.log("Clicked")
              }
              boundsBehavior: Flickable.StopAtBounds
          }
      }
      

      When ListView has boundsBehavior set to Flickable.StopAtBounds, a delegate does not loose focus when it should, and onClicked event is fired. Please watch 3 second video I attach, it explains the problem very quickly

      Attachments

        1. nobounds.mp4
          87 kB
        2. stopatbounds.mp4
          65 kB
        For Gerrit Dashboard: QTBUG-56312
        # Subject Branch Project Status CR V

        Activity

          People

            mitch_curtis Mitch Curtis
            beemaster Roman Pasechnik
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes