From kde-devel Thu Jun 18 20:02:54 2009 From: Andreas Hartmetz Date: Thu, 18 Jun 2009 20:02:54 +0000 To: kde-devel Subject: Re: Press any key ... Message-Id: X-MARC-Message: https://marc.info/?l=kde-devel&m=124535544915046 On Tue, Jun 16, 2009 at 2:08 AM, Ian Wadham wrote: > On Mon, 15 Jun 2009 5:26:28 pm Oswald Buddenhagen wrote: >> On Mon, Jun 15, 2009 at 09:27:46AM +1000, Ian Wadham wrote: >> > Is there some simple way to bypass the shortcuts temporarily and >> > restore them later? >> >> topLevelWidget()->installEventFilter(this); >> and listen for KeyPress events. >> >> just a shot in the dark ... >> > Thanks very much.  That looks as if it will do the trick. > There is also a removeEventFilter(), for restoring shortcuts. > You can even install an event filter on the QApplication object if you really want to receive all events in the application. >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<