[Qt-interest] 答复: layers of QGraphicsView

pengliang(彭亮) pengliang at founder.com
Tue Aug 9 05:23:00 CEST 2011


Hi Bob

         As your idea: I open one layer, I must to check every item whether they belong to this layer.

I am worry that it is very slow when open or close one layer (the number of items is very huge.).

Thanks

Ken

 

 

 

________________________________

发件人: qt-interest-bounces+pengliang=founder.com at qt.nokia.com [mailto:qt-interest-bounces+pengliang=founder.com at qt.nokia.com] 代表 Bob Hood
发送时间: 2011年8月9日 10:06
收件人: qt-interest at qt.nokia.com
主题: Re: [Qt-interest] layers of QGraphicsView

 

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/20110809/5b6f14f2/attachment.html 


More information about the Qt-interest-old mailing list