[PyQt] Re: QGraphicsScene addLine, addRect draw order scrambled in Qt 4.4.3 on mac ?

David Boddie dboddie at trolltech.com
Tue Jun 9 15:41:06 BST 2009

On Tue Jun 9 10:41:37 BST 2009, denis wrote:

> bug: some addLines are hidden by previous addRects in Qt 4.4.3 + mac too,
> differently in C and PyQt.  The C testcase is below, please forward
> (Nokia doesn't seem to respond to bugs that don't show up on handys :)

I don't think the order in which the objects are drawn is guaranteed to be
the same as the order in which they are created.

This is unfortunate because it means that the drawing order is arbitrary.
I tend to set the Z value of objects to be sure that they are drawn in the
order I expect.


More information about the PyQt mailing list