Enable label positioning in Qslider
See original GitHub issueIs your feature request related to a problem? Please describe. Yes, we have design where label is under slider line and always visible… you have prop to make it always visible but there is not prop for making label to appear underneath the line.
Describe the solution you’d like
prop to control label position aka label-position="< top | bottom | left | right >"
Describe alternatives you’ve considered I think of some Qtooltip reuse here as it has already that feature 🤷
Many thanks 🙏
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Placing a label next to a slider handle - Qt Forum
I've tried the following code but the label is not positioned exactly by the handle. @ #include "widget.h" Widget::Widget(QWidget *parent) ...
Read more >Position of QSlider in a widget - Stack Overflow
The problem is with identifying the position of the sliders. How do I get their locations? either within the widget or within the...
Read more >working with QSlider widget in PyQt - ZetCode
To create a vertical slider, we pass the Qt.Orientation.Vertical to the QSlider constructor. self.label = QLabel('0', self) self.label.
Read more >Slider - Quasar Framework
The example below is better highlighting how QSlider handles label positioning so that it always stays inside the QSlider's box horizontally. Long label....
Read more >Thread: Setting Initial QwtSlider Position - Qt Centre Forum
... the label but not the slider position. My apologies if I am missing something really easy here. Is it possible to disable...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Feature will be available in Quasar v2.4.0 (through new prop for both QSlider/QRange: switch-label-position). A backport for Quasar v1 will be added shortly.
Similar issue to @luckylooke, UI has vertical slider on far-right of UI, no obvious way to get the labels to appear to the left side of the slider so they’re getting clipped. Used similar CSS hack but results bit goofy, working built-in prop would rock.