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

Slider component ignores discrete tickmarks when scrolling with a trackpad

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.15.0 RC2
    • Quick: Controls 2
    • None
    • Linux/X11

    Description

      Possibly I have posted this bug report to the wrong component. Please let me know.

      A slider can be set to use discrete steps which it has to snap to. Using the scroll wheel each 'click' will move the handle to a level above or below. However, when scrolling using the trackpad using two fingers I am able to position the slider in between the discrete values. 

      The test case below can be used to reproduce the issue.

      import QtQuick 2.6
      import QtQuick.Controls 2.15 as QQC2
      
      Item {
          implicitWidth: 500
          implicitHeight: 300
      
          QQC2.Slider {
              wheelEnabled: true
              snapMode: Slider.SnapAlways
              anchors.centerIn: parent
              from: 1
              stepSize: 1
              to: 10
          }
      }
      

      Just position the cursor over the slider and scroll with a touchpad. The handle will move freely, rather than snapping to the tickmarks.

      Attachments

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

        Activity

          People

            srutledg Shawn Rutledge
            buskebam Tom B
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There is 1 open Gerrit change