[Qt-interest] layers of QGraphicsView

Bob Hood bhood2 at comcast.net
Tue Aug 9 04:06:15 CEST 2011


On 8/8/2011 7:23 PM, pengliang(彭亮) wrote:
>
> Hi All
>
> Please see the pic bellow.
>
> I want to design a software like the picture show:
>
> many layers in the left side:
>
> I want to use QGraphicsScene to control and manage the QGraphicsItems in layer.
>
> And QGraphicsView is the interface of graphic editor.
>
> But, I don’t know how to display muliti layers. Because, “setScene”of
> QGraphicsView could only set one scene.
>
> Or I need to use QGraphicsItemGroup to design the layers?
>
> Anybody has this experience?
>

Assign a layer value to each object in the scene, and then only make it
visible (i.e., draw it) if its layer is selected.

Render me gone,                       |||
Bob                                 ^(===)^
---------------------------------oOO--(_)--OOo---------------------------------
   "One of the penalties for refusing to participate in politics is that you
           end up being governed by your inferiors." -- /Plato/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110808/41b1ff65/attachment.html 


More information about the Qt-interest-old mailing list