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

Inconsistent behavior of flick() at bounds

    XMLWordPrintable

Details

    • 0b73daa4f6858aa8d52e6b958d8f0b3209858b80

    Description

      The following example demonstrates the issue when pressing the 'up' key:

      import QtQuick 2.0
      
      ListView {
          width: 400
          height: 400
      
          focus: true
          Keys.onUpPressed: flick(0,2000)
      
          highlightRangeMode: ListView.StrictlyEnforceRange
          preferredHighlightBegin: 0
          preferredHighlightEnd: 0
      
          model: 10
          delegate: Item {
              width: parent.width
              height: 50
      
              Text {
                  anchors.centerIn: parent
                  text: index
              }
          }
      }
      

      The first time it is pressed, and the second time it is pressed, give different visual results. They should be consistent.

      Attachments

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

        Activity

          People

            mbrasser Michael Brasser
            mbrasser Michael Brasser
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes