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

Inconsistent behavior of flick() at bounds

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 5.9.1
    • Fix Version/s: 5.9.2
    • Labels:
      None
    • Commits:
      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

        For Gerrit Dashboard: QTBUG-62939
        # Subject Branch Project Status CR V

          Activity

            People

            • Assignee:
              mbrasser Michael Brasser
              Reporter:
              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