Bug 386143

Summary: Wrong Slider handler calculation
Product: [Frameworks and Libraries] frameworks-qqc2-desktop-style Reporter: hipersayan_x <hipersayan.x>
Component: generalAssignee: Marco Martin <notmart>
Status: RESOLVED FIXED    
Severity: normal CC: bharadwaj.raju777, kde
Priority: NOR    
Version First Reported In: 5.39.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Wrong slider handler calculation only in org.kde.desktop style

Description hipersayan_x 2017-10-24 18:18:45 UTC
Created attachment 108548 [details]
Wrong slider handler calculation only in org.kde.desktop style

When using "from" property with negative values and org.kde.desktop style, the handler is positioned to the positive side. This is the code tested:

import QtQuick 2.7
import QtQuick.Controls 2.0

ApplicationWindow {
    id: window
    width: 400
    height: 30
    color: palette.window

    SystemPalette {
        id: palette
    }

    Slider {
        anchors.fill: parent
        from: -10
        value: 0
        to: 10
        stepSize: 1
    }
}

And attached a comparison with other styles.
Comment 1 Bharadwaj Raju 2021-02-14 12:15:42 UTC
This bug has been fixed as of at least Frameworks 5.79.0.