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

The error in Slider.Value with stepSize and "snapMode: Slider.SnapAlways"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.9.4
    • 5.9.1
    • Quick: Controls 2
    • None
    • Windows 7
    • f46776cc68f88a8cbc518cacf6c63f31f11d73b0

    Description

      import QtQuick 2.9
      import QtQuick.Controls 2.2
      Item {
          id: root
          width: 700
          height: 700
      
          Slider {
              from: -7
              to: 7
              stepSize: 1
              snapMode: Slider.SnapAlways
              onValueChanged: console.log(value)
          }
      }
      

      Possible Values:

      • 2.9999999999999982
      • 5.999999999999998
      • -2.000000000000001

      Attachments

        Issue Links

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

          Activity

            People

              Unassigned Unassigned
              evgeny_kolchin Evgeny Kolchin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes