Questions tagged [qabstractslider]

The QAbstractSlider class, part of the Qt framework, provides an integer value within a range.

Documentation can be found here (Qt4) and here (Qt5).

8 questions
6
votes
4 answers

QSlider stepping?

I'd like to specify the steps that a QSlider can slide, like it is possible for the QSpinBox by using setSingleStep. I tried to use setSingleStep of QAbstractSlider, but this seems to have no effect. Any ideas?
Richard Durr
  • 3,081
  • 3
  • 20
  • 26
3
votes
0 answers

How do I get position of QSlider bar in Qt?

I'm using QSlider object in my Qt application and I want to get the position of the slider bar upon moving it. I tried using pos() function, but it always returns QPoint() with the same values of x and y (i suppose it returns position of top left…
George
  • 578
  • 4
  • 21
2
votes
0 answers

How to prevent focusing of QSlider when touch scrolling with QScroller?

I have a QScrollArea with QScroller::grabGesture(wgt, QScroller::LeftMouseButtonGesture);. Inside it, I have multiple widgets. I'm trying to make it work in such a way so that people can scroll using touch gestures without worrying about…
Danol
  • 368
  • 1
  • 15
1
vote
0 answers

Stylesheet for QTableViews scrollbar in ui file

I wonder how I could add a style sheet to my qtableviews scrollbar. I'm sure it should work somehow, but I'm not getting it to work.. sth. like this:
easysaesch
  • 159
  • 1
  • 14
1
vote
2 answers

QTextEdit and custom scrolling - PageDown/PageUp

I'm trying to implement a custom scrolling behavior in a QTextEdit control. It seems to be working but I'm having problems with the PageDown/PageUp key press: I'm controlling the scrolling behavior through the actionTriggered signal since the…
Marco A.
  • 43,032
  • 26
  • 132
  • 246
0
votes
0 answers

How do I paint over an QAbstractSlider?

I've got this cool widget I'm working on and I simply want to paint this central straight line, over the slider widget that I've created. Since the PaintEvent activates at initialization, anything called in the main class is displayed above the…
Magic Dave
  • 11
  • 3
0
votes
0 answers

QDialer range issue

I have problems using a QDial with a very big range. Using QDials with not too big ranges there is no problem, but using it with big ranges yes, for example: QDial *dial; dial->setRange(-50, 50) //goes well dial->setRange(-107000000, 107000000) //…
makiwhtie
  • 51
  • 6
0
votes
2 answers

detect if the arrow button from QScrollBar is pressed

Is there a signal that I can emit if the arrow button of the QScrollBar is pressed? As far as I know there is only the sliderPressed() signal. I want, if it exists, another solution from valueChanged() signal.
salvador
  • 1,079
  • 3
  • 14
  • 28