PDA

View Full Version : Multiple plane in QGraphicsView



jaisankar
13th February 2018, 08:39
Hi All,

Can some one help , best way to create a multiple layer in GraphicsView using GraphicsScene, and each layer can have multiple GraphicsItem added.

Regards,
Jai

^NyAw^
13th February 2018, 11:29
Hi,

You can set the Z value on each item. Every different Z value can represent a different layer

d_stranz
13th February 2018, 16:47
You could use a QGraphicsItem to represent the "layer" and add the QGraphicsItems for each layer as children of that layer's main item. By changing the Z-value for the layer items, you could rearrange the entire layer to put it on top of or below other layers or hide or show them individually.

jaisankar
14th February 2018, 05:03
Thanks for suggestion.
can we view both the layer concurrently?

^NyAw^
14th February 2018, 10:00
Hi,

You can use the transparency of the items.