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

Inconsistent behavior of flick() at bounds

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • 5.9.2
    • 5.9.1
    • None
    • 0b73daa4f6858aa8d52e6b958d8f0b3209858b80

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes