Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Scene Items with respect to Viewport



  • how to maintain a scene items with respect to viewport.
    Single scene is used in different viewport , but i would like to maintain the QGraphciItem stacking order with respect to viewport.


  • Moderators

    @Jaisan said in Scene Items with respect to Viewport:

    but i would like to maintain the QGraphciItem stacking order with respect to viewport.

    what does that mean??



  • @Jaisan
    Do you mean you want a different stacking order for each viewport?
    A scene can only have one stacking order so if you are using the same scene in both they will both have the same stacking order.
    You will need a scene for each viewport, or possibly two different zones in one scene with copies of the items having different stacking z values. Then you point your viewports at the respective zones.
    Maybe keep your "drawing data" in your own data structure then build a scene for each viewport with a different stacking order from your "drawing data".


Log in to reply