<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hmmm, not sure how to proceed. The QVTKWidget inherits from QWidget. However, you may need to somehow use QGLWidget instead of QWidget, in order to get Qt widgets to render within an OpenGL scene.&nbsp;<div><br></div><div>VTK does it's own implementation of QWidget to add OpenGL rendering support, resulting in the QVTKWidget plugin.&nbsp;</div><div><br></div><div>VTK also has a USE_QOPENGL configure command to use Qt's OpenGL implementation.&nbsp;</div><div><br></div><div>Not sure how all this ties in together, but does this somehow imply that if you set USE_QOPENGL configure option somehow will be using QGLWidget instead of QWidget or something? The generated headers for QVTKWidget plugin doesn't seem to indicate this.</div><div><br></div><div>Best regards,</div><div><br></div><div>Elvis Dowson<br><div><br></div><div><br><div><div><div>On Oct 15, 2008, at 2:30 PM, Elvis Dowson wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi,<div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; Here's what I've found out so far. It appears to be feasible, I think. (fingers crossed!!) :-)&nbsp;</div><div><br></div><div><a href="http://doc.trolltech.com/4.4/qgraphicsview.html">Extract from Qt 4.4.3: QGraphicsView Class Reference</a></div><div><br></div><div>By default, QGraphicsView provides a regular&nbsp;<a href="http://doc.trolltech.com/4.4/qwidget.html" style="color: rgb(0, 79, 175); text-decoration: none; ">QWidget</a>&nbsp;for the viewport widget. You can access this widget by calling&nbsp;<a href="http://doc.trolltech.com/4.4/qabstractscrollarea.html#viewport" style="color: rgb(0, 79, 175); text-decoration: none; ">viewport</a>(), or you can replace it by calling&nbsp;<a href="http://doc.trolltech.com/4.4/qabstractscrollarea.html#setViewport" style="color: rgb(0, 79, 175); text-decoration: none; ">setViewport</a>(). To render using OpenGL, simply call setViewport(new&nbsp;<a href="http://doc.trolltech.com/4.4/qglwidget.html" style="color: rgb(0, 79, 175); text-decoration: none; ">QGLWidget</a>). QGraphicsView takes ownership of the viewport widget.</div><div><br></div><div>Now QVTKWidget inherits from QWidget, so I'm thinking a test could be to use QVTKWidget to render a VTK actor and then get a Qt widget to appear next to the actor and display some actor properties when you double click on the actor.&nbsp;</div><div><br></div><div>Best regards,</div><div><br></div><div>Elvis Dowson</div><div><br></div><div><font class="Apple-style-span" face="Times" size="4"><span class="Apple-style-span" style="font-size: 16px;"><br></span></font></div></div></blockquote></div><br></div></div></div></body></html>