I need an event for detecting if an user has moved the scrollbar position to another one.
In other words, if the user does scroll up/down, would it be possible to catch a signal so I can know the scroll has been changed its position?
I think it's not important, but the scrollbar I refer to is inside a QGraphicsView
.
Regards.
Edit:
QGraphicsView
is for displaying items in the screen, and if those items are too big it shows the scrollbars I refer to. What I need is to know when the user changes the position of those scrollbars.
Explain Scroll events in JavaScript. Explain Scroll events in JavaScript. The scroll event in JavaScript is fired when the user interacts with a scrollbar by moving it up or down.
You will notice that when the scroll value is changed by the button's Click event, only the ValueChanged event is raised. In contrast, when the scroll bar is scrolled manually, the Scroll event is raised immediately after the ValueChanged event. private void AddMyScrollEventHandlers() { // Create and initialize a VScrollBar.
You could try hijacking the mousedown and mouseup events and avoiding them when click on a scrollbar with your custom powered function. And the inverse for mousedownScroll and mouseupScroll events.
You can trigger the scroll events in the following ways, for example: 1 Using the scrollbar manually 2 Using the mouse wheel 3 Clicking an ID link 4 Calling functions in JavaScript
Sliders have a sliderMoved(int value)
signal, where value is the new position of slider.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With