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

List:       pykde
Subject:    Re: [PyQt] figuring out where keypress events go
From:       Phil Thompson <phil () riverbankcomputing ! com>
Date:       2011-11-11 10:06:35
Message-ID: e1347c35c7b4207b0276f577ebd2d4e6 () localhost
[Download RAW message or body]

On Fri, 11 Nov 2011 10:50:21 +0100, Peter Bienstman
<Peter.Bienstman@ugent.be> wrote:
> Hi,
> 
> I want to customise handling of certain keys, but they never make it to
my 
> keyPressEvent handler, probably because they get processed by another
> object.
> 
> Is there an easy way to debug which objects these might be, such that I
> can 
> subclass them to ignore this keypress event?

Are the keys defined as shortcuts? If so you will need to handle the
ShortcutOverride event and accept the event for those keys that you want to
reach your keyPressEvent.

Phil
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread] 

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