[PyQt] Forcing a QGraphicsItem to draw on top

Phil Thompson phil at riverbankcomputing.com
Wed Mar 18 15:54:12 GMT 2009


On Wed, 18 Mar 2009 08:46:35 -0700, Remi McGill <Remi.McGill at autodesk.com>
wrote:
> I am using QGraphicsItems do display graphics.  This may be a simple
thing
> that I have missed, but how can I get one QGraphicsItem to draw on top of
> all others?  It seems the item I am working with goes behind some items
and
> over top others.  Any suggestions?

See QGraphicsItem.setZValue()

Phil


More information about the PyQt mailing list