[PyQt] QGrahicsView and event issue

Oguz Yarimtepe comp.ogz at gmail.com
Mon Nov 17 15:41:54 GMT 2008


On Fri, 2008-11-14 at 16:37 +0100, dboddie at trolltech.com wrote:
> OK, I forgot to mention that you need to call the base class's
> keyPressEvent()
> method to handle any key presses that you aren't interested in.
> 
> Try adding an "else" clause to your keyPressEvent() implementation:
> 
>   else:
>       QGraphicsView.keyPressEvent(self, event)

Got it. Thanx.






More information about the PyQt mailing list