PyQt5 QScrollBar – Getting Slider Position
In this article we will see how we can get position of slider in QScrollBar. QScrollBar is a control that enables the user to access parts of a document that is larger than the widget used to display it. Slider is the scroll-able object inside the bar. We can change its position with the help of mouse and keyboard. Also we can change its position programmatically with the help of setSliderPosition method.
In order to do this we will use sliderPosition method with the scroll bar object.
Syntax : scroll.sliderPosition()
Argument : It takes no argument
Return : It returns integer
Example: Below is the implementation