Bug 386143 - Wrong Slider handler calculation
Summary: Wrong Slider handler calculation
Status: RESOLVED FIXED
Alias: None
Product: frameworks-qqc2-desktop-style
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.39.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Marco Martin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-24 18:18 UTC by hipersayan_x
Modified: 2021-02-14 12:15 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Wrong slider handler calculation only in org.kde.desktop style (23.68 KB, image/png)
2017-10-24 18:18 UTC, hipersayan_x
Details

Note You need to log in before you can comment on or make changes to this bug.
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.