Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-45763 OpenGL clipping on OSX
  3. QTBUG-42716

Flicking in PathView hides some of the items

    XMLWordPrintable

Details

    • fd09399bbbb207f25c5198c1badc40d916797e93

    Description

      When fast flicking PathView some of the items aren't drawn properly but instead they get hidden.
      It depends on the maxPathItemCount if the issue will reproduce or not.

      View.qml
      import QtQuick 2.0
      
      Rectangle {
        id: qmlBrowser
      
        width: 500
        height: 350
      
        ListModel {
            id: myModel
            ListElement {
                name: "Bill Jones 1"
            }
            ListElement {
                name: "Jane Doe 2"
            }
            ListElement {
                name: "John Smith 3"
            }
            ListElement {
                name: "Bill Jones 4"
            }
            ListElement {
                name: "Jane Doe 5"
            }
            ListElement {
                name: "John Smith 6"
            }
            ListElement {
                name: "John Smith 7"
            }
            ListElement {
                name: "John Smith 8"
            }
        }
      
        Component {
          id: delegate
      
          Text {
              id: nameText
              height: 33
              width: parent.width
      
              text: "index: " + index + "   text: " + name
              font.pointSize: 16
              color: PathView.isCurrentItem ? "red" : "black"
          }
        }
      
        PathView {
          id: contentList
          anchors.fill: parent
      
          property int  maxPathItemCount:      7
          property real itemHeight:            34
          
          delegate:                 delegate
          model:                    myModel
          currentIndex:             5
          pathItemCount:            maxPathItemCount
          highlightMoveDuration:    0
      
          path: Path {
            startX: 30 + contentList.width / 2; startY: 30
            PathLine { relativeX: 0; relativeY: contentList.itemHeight * contentList.maxPathItemCount }
          }
      
          focus: true
          Keys.onLeftPressed: decrementCurrentIndex()
          Keys.onRightPressed: incrementCurrentIndex()
        }
      }
      
      
      

      Attachments

        1. qtbug42716.zip
          2 kB
        2. reproduce.qml
          2 kB

        Issue Links

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

          Activity

            People

              srutledg Shawn Rutledge
              kileppal Kimmo Leppälä
              Votes:
              2 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes