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

QML Slider handle is not centered where Slider is clicked/dragged

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P2: Important
    • None
    • 5.15.0
    • Quick: Controls 2
    • None
    • Linux/Wayland, Linux/X11

    Description

      When a slider is clicked or dragged, the further away from the middle it is, the more off-center your handle will be from your mouse cursor. Likewise when clicked from the very center of the slider, your, the handle is centered with the mouse. I believe the correct behavior should be that the handle is always exactly centered to your mouse cursor when the slider is clicked.

       

      This can be tested with just a simple slider:

      import QtQuick.Controls 2.3
      
      Slider {
          width: 500
      
          //handle.implicitWidth: implicitHeight
      }
      

      A workaround I tried is to set the handle width explicitly which seems to give very close to the desired behavior, you can test by uncommenting the line.

       

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            yerrey Yerrey Dev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes