How to add a chartview item to a scene such that it appears under the already existing items in the scene ?
Solved
General and Desktop
-
Hello,
I am a newbie to qt and I have graphics view and a corresponding scene. The scene already contains QGraphicsRectItems. Now i want to add a chartview to the scene. when i add it it is added on top of existing rect items. How to add it to the scene such that the rect items appear on top of the chartview.
Thanks for any help inadvance . -
Hi
You can change the z order
https://doc.qt.io/qt-5/qgraphicsitem.html#setZValue
or use
https://doc.qt.io/qt-5/qgraphicsitem.html#stackBefore