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

PathView starts spinning again after releasing mouse button outside of bounding rect

    XMLWordPrintable

Details

    • 3df387d634

    Description

      Pressing inside the PathView and releasing mouse outside of it causes the PathView to spin (same behavior with touch).

      import QtQuick 2.6
      import QtQuick.Window 2.0
      
      Window {
          id: root
          width: 500
          height: 500
          visible: true
      
          property int visibleItemCount: 5
          property int delegateHeight: 40
      
          PathView {
              id: columnPathView
              width: 40
              height: 200
              anchors.centerIn: parent
              clip: true
      
              pathItemCount: visibleItemCount + 1
              preferredHighlightBegin: 0.5
              preferredHighlightEnd: 0.5
              dragMargin: width / 2
      
              path: Path {
                  startX: columnPathView.width / 2
                  startY: -delegateHeight / 2
                  PathLine {
                      x: columnPathView.width / 2
                      y: columnPathView.pathItemCount * delegateHeight - delegateHeight / 2
                  }
              }
      
              model: 10
      
              delegate: Rectangle {
                  border.color: "black"
                  implicitWidth: columnPathView.width
                  implicitHeight: delegateHeight
              }
          }
      }
      

      This problem can be seen in both the Qt Quick Extras and Qt Quick Controls 2.0 Tumbler.

      Attachments

        Issue Links

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

          Activity

            People

              srutledg Shawn Rutledge
              VersalEszett Julius Bullinger
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes