[Qt-interest] layers of QGraphicsView
Malyushytsky, Alex
alex at wai.com
Wed Aug 10 04:10:47 CEST 2011
In general layer ( a group of any items ) probably might be presented as a QGraphicsItemGroup,
but it may have nothing to do with QGraphicScene. It is basically a list of items groups.
You may subclass all items you need to keep the pointer to the "layer" they belongs to.
Alex
From: qt-interest-bounces+alex=wai.com at qt.nokia.com [mailto:qt-interest-bounces+alex=wai.com at qt.nokia.com] On Behalf Of pengliang(??)
Sent: Monday, August 08, 2011 6:23 PM
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
---------------------------------------------------------------------------------------------------
Weidlinger Associates, Inc. made the following annotations.
“This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Thank you.”
“Please consider our environment before printing this email.”
More information about the Qt-interest-old
mailing list