Hi everyone

I have a QGraphicsView with a QGraphicsScene. I've added a QGLWidget as viewport to the QGraphicsView and implemented ad OpenGL based drawBackground in QGraphicsScene.

The background add a polygon with a texture on i as background.

The problem starts when adding items.

I've derived some classes from QGraphpicsItem and re-implemented the paint function. When I test which paintEngine that is pressent it is NOT a OpenGL or OpenGL2.

But I can draw the lines (and other stuff) in the item over the scene-background. But the problem is that the texture from the background of the scene is drawn in the items boundRect.

I don't know if the problem with the wrong paintEngine is related to the drawing problem.
THe image below shows the problem The bottom-left corner displays a miniversion of the GLGraphicsScene background texture. The other three items are correctly rendered.



Best regards
Erik