Hi,<br><br>We&#39;re developing a research tool that uses QVTKWidget to integrate VTK rendering in a Qt application. For this application, I&#39;m currently working on a widget that extends from QGLViewer. In this widget I want to display a 2D map of floats (a 256x128 height field). Since I cannot find a way to do this in Qt with either QPixmap or QImage (they both require specific image formats which I don&#39;t have) I&#39;m using OpenGL to do this. This works fine except for the fact that it messes up depth sorting and face culling in the vtkRenderer of the QVTKWidget. For some reason, the GL context in the QGLViewer is left in an unknown state which confuses the VTK rendering.<br>
<br>In the QGLWidget I&#39;m trying to keep the OpenGL-specific render statements together in a single function and call glPushAttrib( GL_ALL_ATTRIB_BITS ) and glPopAttrib() at the beginning and end. I&#39;m also pushing and popping all transformation matrices. Still I&#39;m getting these rendering problems in VTK. If I don&#39;t create the GL widget, everythings works fine.<br>
<br>Any idea how I could solve this?<br><br>Thanks!<br><br>Ralph<br><br><br>