I have an application, where i've enabled zooming on Ctrl+Mousewheel, using the following code
void GraphWidget::wheelEvent(QWheelEvent *event)
However, i also want the scrollbars to respond to wheelevents when mouse wheel is moved without Ctrl being pressed. How do i do that ?Qt Code:
{ if (event->modifiers().testFlag(Qt::ControlModifier)) { scaleView(pow((double)2, -event->delta() / 240.0)); } }To copy to clipboard, switch view to plain text mode
Bookmarks