[PyQt] Fwd: scene and layers

Philippe Crave philippe.crave at gmail.com
Fri Apr 30 09:48:22 BST 2010


oups, I forgot to reply to all

---------- Forwarded message ----------

I never used drawBackground
but I think that you have to re-implement it in your class

like

def drawBackground(self, painter, rect):
    ...

about layers, I think you should look at "parent".
you can create an item, and specify its parent (will be another item).

for exemple, one graphicsItem can be a blue rectangle.
and then, you can create 10 other items (like circles, or something else),
and set the blue rectangle as parent of circles.

in a way, you have a layer.

2010/4/30 Christopher M. Nahler <christopher.nahler at papermodels.at>

I am working through the Rapid GUI book already and have tons of printouts
> of the api documentation on my desk right now :-)
>
> I am dissecting the diagramscene from the examples and the pagedesigner
> from the book.
>
> I will check if I find more insight to layers in the book
>
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20100430/4bfe4eeb/attachment-0001.html>


More information about the PyQt mailing list