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

List:       pykde
Subject:    Re: [PyQt] PyQt event management
From:       Phil Thompson <phil () riverbankcomputing ! com>
Date:       2012-04-16 16:36:05
Message-ID: a709d4d4191846680467ed655787624f () localhost
[Download RAW message or body]

On Mon, 16 Apr 2012 18:30:07 +0200, Pierre Barthelemy <barthpi@gmail.com>
wrote:
> Dear all,
> 
> I defined a few plot classes, children of qwidget, to handle chaco
plots. I
> would like to have a way to connect a few functions to the event of
> clicking inside the window that i create. I have tried to implement a
few
> events. In this class, the close event works well. But the other don't:
> when i click inside the qwidget, nothing happens. I would guess that it
> come from the fact that the chaco plot items take the focus, so that
when i
> click inside the window, the chaco plot gets the event. Is there a way
for
> me to have these events activated, even if the mouse click also
activates
> events from the chaco plots ?

Have a look at the QApplication.focusChanged() signal.

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