Hi,

I am trying to draw a 3D object on QGraphicsView. I set new glwidget as viewport of graphics view. I have written my own custom widget which is not inherited from glwidget. I am using some opengl functions in paint event of my custom widget. It is not showing me anything but the widget background is erased with white color.
while debugging I found that on first call to any opengl function I am getting error GL_INVALID_ENUM from glGetError.
If anybody knows what is wrong in this approach or any other approach that may work, then please tell me.
Waiting for reply because I can't proceed without solving this issue.

Thanks in advance.

Sandip