aboutsummaryrefslogtreecommitdiffstats
path: root/src/checks/level1/README-install-event-filter.md
blob: 567e44ba38cadf126ccf2486ffd0ba59fa96ed17 (plain)
1
2
3
4
5
6
7
# install-event-filter

Warns on potential misuse of `QObject::installEventFilter()`.
To install an event filter you should call `monitoredObject->installEventFilter(this)`, but sometimes
you'll write `installEventFilter(filterObject)` by mistake, which compiles fine.

In rare cases you might actually want to install the event filter on `this`, in which case this is a false-positive.