question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Enable label positioning in Qslider

See original GitHub issue

Is 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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
rstoenescucommented, Dec 16, 2021

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.

0reactions
brent-williamscommented, Aug 19, 2021

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.

.q-slider {
  ::v-deep {
    .q-slider__pin-text-container--v {
      transform: translate(-109px,-12px);
    }
    .q-slider__arrow--v {
      transform: translateX(-21px) rotate(180deg);
    }
  }
}
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found