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

ScrollBar increase()/decrease() don't align with mouse snap positions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.15.0
    • Quick: Controls 2
    • None
    • All

      I'm trying to implement discrete scrolling where the step size equals the height of an item in a ListView.

      I can calculate the ScrollBar::stepSize so that the snap points (when dragged) align perfectly with the beginning of the next item. The problem is, that using the ScrollBar's increase or decrease methods will then jump too far. The ScrollBar calculates snapPositions based on the given step size which will always result in a smaller grid then using just increase/decrease which will just add or subtract the step size as is.

      This makes it impossible to achieve a great UX, because one of the two use cases will not work.

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            marcel.gotsch Marcel Gotsch
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes