Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-139999

Event filters should not need to be QObjects

XMLWordPrintable

      Currently, event filters are by definition QObjects that reimplement eventFilter(). This is not necessary. Nothing in eventFilter() requires *this to be-a QObject.

      For Qt 7, we should consider Extract Interface on QObject to create a QEventFilter pure virtual interface. That can then also be used to back generic event filters (QTBUG-29731). As long as event filters must be QObjects, creating template subclasses to back such a feature is causing massive overhead.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            cnn Qt Core & Network
            mmutz Marc Mutz
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes