Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Should I report this bug?
QtWS25 Last Chance

Should I report this bug?

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 3.1k Views
  • 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 Offline
    G Offline
    genjix
    wrote on last edited by
    #1

    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
    0
    • A Offline
      A Offline
      alexander
      wrote on last edited by
      #2

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

      1 Reply Last reply
      0
      • G Offline
        G Offline
        genjix
        wrote on last edited by
        #3

        oh sorry, I meant wheelEvent(event)

        1 Reply Last reply
        0
        • ? This user is from outside of this forum
          ? This user is from outside of this forum
          Guest
          wrote on last edited by
          #4

          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
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved