Qt scroll event detection

How to detect scroll event in Qt widgets?

I want to use it to scroll the QWT graph. I tried using QMouseEvent , but I could only find options for moving and clicking / releasing the mouse.

+4
source share
1 answer

void QWidget::wheelEvent(QWheelEvent* event) will be what you need (docs here ).

+13
source

Source: https://habr.com/ru/post/1432230/


All Articles