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

PathView moving property is not updated when flick is stopped

    XMLWordPrintable

Details

    • Linux/X11
    • 44c51303b6968a4c8c5cf80fa92618852d017fd0 26e99aeacdb2527e6b439d8244a774cd719d732a (qt/qtdeclarative/5.13)

    Description

      Run the following example:

      import QtQuick 2.13
      import QtQuick.Controls 2.13
      
      ApplicationWindow {
          width: 800
          height: 600
          visible: true
      
          Tumbler {
              id: tumbler
              anchors.centerIn: parent
              visibleItemCount: 10
              implicitHeight: 400
              implicitWidth: 60
              spacing: 0
              model: 124
      
              delegate: Label {
                  text: qsTr("%1").arg(modelData)
                  horizontalAlignment: Text.AlignHCenter
                  verticalAlignment: Text.AlignVCenter
              }
      
              onMovingChanged: console.log("Moving changed. "+tumbler.moving)
          }
      }
      

      Flick the Tumbler with a mouse and wait till it stops. The logs are the following:

      qml: Moving changed. true
      qml: Moving changed. false
      

      Flick the Tumbler with a mouse and then stop it with the mouse. The logs are the following:

      qml: Moving changed. true
      

      and the expected result would be:

      qml: Moving changed. true
      qml: Moving changed. false
      

      The moving property is not updated properly when the flick is stopped by a mouse.

      Attachments

        Issue Links

          Activity

            People

              srutledg Shawn Rutledge
              karimpinter Karim Pinter (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: