[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    [PyQt] Fwd:  scene and layers
From:       Philippe Crave <philippe.crave () gmail ! com>
Date:       2010-04-30 8:48:22
Message-ID: v2nf0c5b9bb1004300148nab82c2bbh18b93fc6cd18912 () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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@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@riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>

[Attachment #5 (text/html)]

oups, I forgot to reply to all<br><br><div class="gmail_quote">---------- Forwarded \
message ----------<br><br>I never used drawBackground<br>but I think that you have to \
re-implement it in your class<br><br>like <br><br>def drawBackground(self, painter, \
                rect):<br>
       ...<br><br>about layers, I think you should look at &quot;parent&quot;.<br>
you can create an item, and specify its parent (will be another item).<br><br>for \
exemple, one graphicsItem can be a blue rectangle.<br>and then, you can create 10 \
other items (like circles, or something else), and set the blue rectangle as parent \
of circles.<br>

<br>in a way, you have a layer.<br><br><div class="gmail_quote">2010/4/30 Christopher \
M. Nahler <span dir="ltr">&lt;<a href="mailto:christopher.nahler@papermodels.at" \
target="_blank">christopher.nahler@papermodels.at</a>&gt;</span><div> <div></div><div \
class="h5"><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, \
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> I am working through the \
Rapid GUI book already and have tons of printouts of the api documentation on my desk \
right now :-)<br> <br>
I am dissecting the diagramscene from the examples and the pagedesigner from the \
book.<br> <br>
I will check if I find more insight to layers in the book<div><div></div><div><br>
_______________________________________________<br>
PyQt mailing list      <a href="mailto:PyQt@riverbankcomputing.com" \
target="_blank">PyQt@riverbankcomputing.com</a><br> <a \
href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" \
target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br> \
</div></div></blockquote></div></div></div><br> </div><br>



_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic