[Qt-interest] layers of QGraphicsView

manish.s.sharma at nokia.com manish.s.sharma at nokia.com
Tue Aug 9 05:55:08 CEST 2011


3. create different QGraphicsScene for each layer and call QGraphicsView::setScene() with correct scene instance corresponding to the layer which you  want to show.

Regards,
Manish

From: qt-interest-bounces+manish.s.sharma=nokia.com at qt.nokia.com [mailto:qt-interest-bounces+manish.s.sharma=nokia.com at qt.nokia.com] On Behalf Of ext manish.s.sharma at nokia.com
Sent: Tuesday, August 09, 2011 9:21 AM
To: pengliang at founder.com; qt-interest at qt.nokia.com
Subject: Re: [Qt-interest] layers of QGraphicsView

I can think of below options.

1.       Split your scene in regions and name them as layers and scroll your graphicsview across regions when you want to activate a particular layer. Here region corresponds to layers.

2.       Crate one parent GraphicsItem for each layer. Then add child items in the corresponding parent item and later you can just set visibility of the parent item.

Regards,
Manish

From: qt-interest-bounces+manish.s.sharma=nokia.com at qt.nokia.com [mailto:qt-interest-bounces+manish.s.sharma=nokia.com at qt.nokia.com] On Behalf Of ext pengliang(??)
Sent: Tuesday, August 09, 2011 6:53 AM
To: qt-interest at qt.nokia.com
Subject: [Qt-interest] layers of QGraphicsView


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?

Thanks

Ken







[cid:image001.jpg at 01CC5676.39E37780]




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110809/acef89ce/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 20146 bytes
Desc: image001.jpg
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110809/acef89ce/attachment.jpg 


More information about the Qt-interest-old mailing list