[PyQt] (simple) QEvent to subclass problem
Phil Thompson
phil at riverbankcomputing.com
Mon Sep 15 19:46:04 BST 2008
On Mon, 15 Sep 2008 08:54:44 +0200, Simon Edwards <simon at simonzone.com>
wrote:
> 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,
Phil
More information about the PyQt
mailing list