I'm trying to intercept keystrokes before they reach a kate-part. I installed
an eventfilter:

And then I try to eat key presses:

bool MyClass::eventFilter( QObject *o, QEvent *e )
qDebug( "Event type : %d", e->type() );
if ( e->type() == QEvent::KeyRelease ) {
QKeyEvent *k = (QKeyEvent *)e;
qDebug( "Ate key press %d", k->key() );
return true; // eat event
} else {
// standard event processing
return FALSE;

Everything works, except key presses are not intercepted. I can still type in
my kate-part and see letters appearing.

What am I doing wrong?

Thanks in advance,

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<