[PyQt] exposing QGraphicsSceneMouseEvent.setScenePos in PyQt5

Phil Thompson phil at riverbankcomputing.com
Mon Mar 16 17:09:05 GMT 2015


On 13/03/2015 1:30 am, Erik Hvatum wrote:
> Hi Phil,
> 
> In sip/QtWidgets/qgraphicssceneevent.sip, the interface for
> QGraphicsSceneEvent can be seen to expose a private API function
> (QGraphicsSceneEvent.setWidget).  The similar private member functions 
> for
> setting the scenePos and related attributes of QGraphicsScene*Event 
> objects
> are not exposed, however.  These would be very useful for allowing
> interaction with QGraphicsItems from another scene that are painted 
> into a
> QGraphicsView derivative's viewport by calling 
> QGraphicsScene.render(..) in
> the QGraphicsView derivative's drawForeground function.

I will not support anything that is not part of the public API. I've 
removed setWidget().

Phil


More information about the PyQt mailing list