<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi,<div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;I managed to get the VTK off-screen rendering to work, using QGraphicsView and QGraphicsScene, but with one exception. It only works if I use a normal&nbsp;<b>QWidget</b>&nbsp;(paint engine type = 3 Mac OS CoreGraphics).</div><div><br></div><div>However, the moment I switch to using QGLWidget with QGraphicsView to use OpenGL to render the Qt widgets, nothing gets displayed. Neither the QDialog nor the VTK off-screen rendered image. The QGraphicsScene::drawBackground() method implements the painting of the off-screen images.&nbsp;</div><div><br></div><div>If I move the off-screen painting to the QGraphicsScene::drawForeground() method, and still use QGLWidget, to use OpenGL for rendering the Qt widgets, only the Qt widgets get displayed.&nbsp;</div><div><br></div><div>So the first issue is&nbsp;for some reason, the painting of off-screen images works with a normal QWidget, but the moment I switch to QGLWidget, the painting techniques stops working.&nbsp;</div><div><br></div><div>You can see this for your self, in the attached project by changing the values of the following definitions, to use QGLWidget instead of QWidget :</div><div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; color: rgb(100, 56, 32); ">#define QT_GRAPHICSVIEW_USE_QGLWIDGET&nbsp;<span style="color: rgb(28, 0, 207); ">1</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; color: rgb(100, 56, 32); ">#define QT_GRAPHICSVIEW_USE_QWIDGET&nbsp;<span style="color: rgb(28, 0, 207); ">0</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; color: rgb(100, 56, 32); "><font class="Apple-style-span" color="#1C00CF"><br></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; color: rgb(100, 56, 32); "><font class="Apple-style-span" color="#1C00CF"><br></font></div></div><div></div></body></html>