[PyQt] (simple) QEvent to subclass problem
simon at simonzone.com
Mon Sep 15 21:43:17 BST 2008
Phil Thompson wrote:
> On Mon, 15 Sep 2008 08:54:44 +0200, Simon Edwards <simon at simonzone.com>
>> 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.
> Should be fixed in tonight's snapshot.
thanks a lot!
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