Re: Adding QGLWidget to QGraphicsScene problem
Hi guys,
I have solved this problem with some tricks.
I know that it's not good to do these thinks but I don't find any right way.
Try
to inherit your class from QGLWidget and QGraphicsItem and add the item to QGraphicsScene ( as item not widget).
You need to grab framebuffer and draw the image on item in it's paint method.
I tested my code on Windows, Linux and Mac OS and it works fine.
You should keep in mind that it works but not the right way to go on.
If you have any other question then feel free to ask me.
http://www.qtcentre.org/threads/12309-Adding-QGLWidget-to-QGraphicsScene-problem