The cleaner approach is to do the override event handling in a subclass, but you can always install an event filter instead.

See QObject::eventFilter()

Cheers,
_