many thanks,

Basically i am using graphicsview framework which contains n no. of graphics item.This 3D pyramid is also one of the item and so i need to add it to the QgraphicsScene.This forces me to implement paintEvent().Because if i reimpleent paintGL() it is not called at all.

And the thing is that code is working on windows.

regards,
~sanjay