Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Should I report this bug?

    General and Desktop
    2
    4
    2839
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      genjix last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • A
        alexander last edited by

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

        1 Reply Last reply Reply Quote 0
        • G
          genjix last edited by

          oh sorry, I meant wheelEvent(event)

          1 Reply Last reply Reply Quote 0
          • ?
            Guest last edited by

            This is explained by this code in qgraphicsview.cpp

            @
            void QGraphicsView::wheelEvent(QWheelEvent *event)
            {
            Q_D(QGraphicsView);
            if (!d->scene || !d->sceneInteractionAllowed) {
            QAbstractScrollArea::wheelEvent(event);
            return;
            }

            event->ignore();
            

            @

            1 Reply Last reply Reply Quote 0
            • First post
              Last post