Important: Please read the Qt Code of Conduct -

Should I report this bug?

  • Hey,

    I think this is a bug, but someone else on IRC said it isn't, so I'm not sure whether to report it or not?

    If I install an event filter on QGraphicsView, then it will call it's super-class QAbstractScrollableBase before calling my event filter. In that way, it is impossible for me to block scroll events to QGraphicsView. IMO QGraphicsView should call my event filter before QASB. The solution, is just to sub-class QGraphicsView and override the event you're interested in.

  • which function of QAbstractScrollArea does it call? What do you mean?

  • oh sorry, I meant wheelEvent(event)

  • This is explained by this code in qgraphicsview.cpp

    void QGraphicsView::wheelEvent(QWheelEvent *event)
    if (!d->scene || !d->sceneInteractionAllowed) {



Log in to reply