QSlider with configurable home position / origin #10621
Unanswered
aknoerig
asked this question in
Ideas / Proposals
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I had the need for a slider that has a configurable "home" position. Imagine a slider that starts at 0 value, and can be dragged to a negative or a positive side.
While this is technically possible by setting e.g.
min=-1, max=1, value=0, the visual feedback is misleading: the colored track is always starting from the left side.So I created a component that inherits from QSlider and offers an additional
homeproperty. This effectively sets the origin of the track bar. Please see code below.Maybe this could be incorporated into QSlider?
Beta Was this translation helpful? Give feedback.
All reactions