Hi all,

I have created 3D object by inheriting QGLWidget as well as QGraphicsItem.
I am inheriting QGraphicsItem to add this 3D object into QGraphicsScene by using addItem().
The class looks like this

class My3DItem : public QGLWidget, public QGraphicsItem
{
}
I have done some tricks to work this on Linux. Actually adding item to the scene calls paint()
method.I have reimplemented paint() method and calling glDraw() through this implementation to call paintGL() method.

This trick is working on Fedora but not on Ubuntu.

Can anyone guide me on this. If someone interested in the code i can upload it also.

Thanks in advance.

Regards,
~Sanjay