[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Press any key ...
From:       Andreas Hartmetz <ahartmetz () gmail ! com>
Date:       2009-06-18 20:02:54
Message-ID: f3642e6b0906181302k78aea917oe9cfdd5bacf9f74b () mail ! gmail ! com
[Download RAW message or body]

On Tue, Jun 16, 2009 at 2:08 AM, Ian Wadham<ianw2@optusnet.com.au> 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 <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic