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
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
Hi,
You can set the Z value on each item. Every different Z value can represent a different layer
Òscar Llarch i Galán
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.
<=== The Great Pumpkin says ===>
Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.
Thanks for suggestion.
can we view both the layer concurrently?
Hi,
You can use the transparency of the items.
Òscar Llarch i Galán
Bookmarks