[PyQt] (simple) QEvent to subclass problem

Simon Edwards simon at simonzone.com
Mon Sep 15 07:54:44 BST 2008


Hello Phil and all,

I've installed an eventFilter() on one of the Qt graphics scene objects 
(or friends), events arrive, their type() is what I expect 
(GraphicsSceneMousePress), but the type of the event object is always 
PyQt4.QtCore.QEvent. Looking at qgraphicssceneevent.sip I'm guessing 
that it is missing a %ConvertToSubClassCode block to convert QEvent -> 
QGraphicsSceneEvent -> QGraphicsSceneMouseEvent.

cheers,

-- 
Simon Edwards             | KDE-NL, Guidance tools, Guarddog Firewall
simon at simonzone.com       | http://www.simonzone.com/software/
Nijmegen, The Netherlands | "ZooTV? You made the right choice."


More information about the PyQt mailing list