Render Qt scene with third engine,how manage opengl render state
i use Qt to make a game scene editor.the Qt QGraphicScene looks good，but my scene object need specific format animation, so i using third render engine to render it.
my trouble is, the third render engine managing opengl render state inside,but Qt some time change render state also(e.g. after drawForeground).so how can i managing opengl state when this situation.
Qt version is 5.4 RC.