I want to intercept Tab key press in my main window to prevent Qt from switching focus. Here\'s what I\'ve tried so far:
Reimplementing virtual bool QApplication::notify(QObject * receiver, QEvent * e) and pasting the code from my question there works.
virtual bool QApplication::notify(QObject * receiver, QEvent * e)