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

PathView moving property is not updated when flick is stopped

XMLWordPrintable

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

      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.

        For Gerrit Dashboard: QTBUG-78926
        # Subject Branch Project Status CR V

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes