https://bugs.kde.org/show_bug.cgi?id=405471

            Bug ID: 405471
           Summary: QQC2 slider behaving badly when initial value is 1
           Product: frameworks-qqc2-desktop-style
           Version: 5.56.0
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: notm...@gmail.com
          Reporter: tyx...@gmail.com
                CC: k...@davidedmundson.co.uk
  Target Milestone: ---

SUMMARY
We want to have a slider with the values 1, 2, 3, 4, 5. We set "from" to 1,
"to" to 5, "stepSize" to 1. 

Instead of the slider moving between our desired values, it first moves from 1
to about 1.2. Afterwards the slider placement is wrong and is cca 2.4, 3.8,
5.0.

STEPS TO REPRODUCE
1. run the following code in qmlscene:

import QtQuick.Controls 2.5

Slider {
    from: 1
    to: 5
    stepSize: 1
}

OBSERVED RESULT
Slider values are wrong. 

EXPECTED RESULT
Slider values are 1, 2, 3, 4, 5.

SOFTWARE/OS VERSIONS
Operating System: Manjaro Linux 
KDE Plasma Version: 5.15.3
KDE Frameworks Version: 5.56.0
Qt Version: 5.12.1

ADDITIONAL INFORMATION
QQC1 slider does not suffer from this issue.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to