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

[Reg 5.13.2->5.14.0] PathView's strange behaviour with model having 19 items

    XMLWordPrintable

Details

    • All
    • c8f065e2b (dev), 3ee9488de (6.7)

    Description

      Tumbler is not getting initialized properly when model has exactly 19 items in it. It shows a blank space at the top. When you move the wheel, the wrap-around numbers appear.
      It is working fine with model having 17,18,20 or 21 items.

          Tumbler{
              anchors{
                  top:parent.top
                  bottom:parent.bottom
              }
              width: 200
              // Somehow problem is with model size 19 (not with other odd numbers like 17,21 etc..)
              model:[5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85,90,95]
              //Works with following model
              //model:[5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85,90]
              delegate:  Label {
                  text:  modelData
                  opacity: 1.0 - Math.abs(Tumbler.displacement) / (Tumbler.tumbler.visibleItemCount / 2)
                  horizontalAlignment: Text.AlignHCenter
                  verticalAlignment: Text.AlignVCenter
              }
          }
      

      Working fine with 5.12.8, issue seen in 5.14.x and 5.15.x

      Attachments

        1. qtbug90479.PNG
          qtbug90479.PNG
          25 kB
        2. qtbug90479.zip
          2 kB
        3. qtbug90479-pathview.zip
          3 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kagro Kaj Grönholm
            shmittal Shveta Mittal (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes