D
D
denispalchuk2014-01-05 15:18:09
Qt
denispalchuk, 2014-01-05 15:18:09

How to solve problems when using QSlider?

I work in QT 5.1.1. When creating a video player, I encountered such a problem. I decided to create a volume slider. To do this, use something like this:

connect(positionSlider,SIGNAL(actionTriggered(int)),this,SLOT(setPosition(int)));

However, when the bar is clicked, instead of moving to the point where the click occurred, the slider will jump to the beginning. The documentation didn't help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel K, 2014-01-07
@PavelK

Because the slider has a position change signal - valueChanged(int)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question