<div dir="auto">Hi Steve,<div dir="auto"><br></div><div dir="auto">I believe what you're looking for is  QVTKOpenGLWidget. </div><div dir="auto"><br></div><div dir="auto">It is a subclass of QOpenGLWidget.</div><div dir="auto"><br></div><div dir="auto">See <a href="https://www.vtk.org/doc/nightly/html/classQVTKOpenGLWidget.html">https://www.vtk.org/doc/nightly/html/classQVTKOpenGLWidget.html</a></div><div dir="auto"><br></div><div dir="auto">Regards,</div><div dir="auto">Martijn</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">Op 22 feb. 2018 21:10 schreef "Steve Petruzza" <<a href="mailto:spetruzza@sci.utah.edu">spetruzza@sci.utah.edu</a>>:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div><span></span></div><div>Hi,<div><br></div><div>I have a QOpenGLWidget that draws using gl calls. I would like to use a VTK render to draw inside the same canvas.</div><div><br></div><div>I tried to use a QVTKRenderWindowInteractor passing the canvas as parent, but the canvas starts flickering and I cannot see any rendering.</div><div>The same VTK render (using the same QVTKRenderWindowInteractor) works correctly in a separate vtkrenderwindow.</div><div><br></div><div>Is there any simple way to just get the VTKRender to draw directly into the glRender loop of the canvas using the existing rendering window? </div><div>Or any other suggestions.</div><div><br></div><div>I am using VTK 8.1.0 and Qt 5.10 and this <wbr>QVTKRenderWindowInteractor: <a href="https://gitlab.kitware.com/alextsui05/vtk/blob/e9e9ffcfbbad68343a0782a1d9024735b7649a46/Wrapping/Python/vtk/qt5/QVTKRenderWindowInteractor.py" target="_blank">ht<wbr>tps://gitlab.kitware.com/<wbr>alextsui05/vtk/blob/<wbr>e9e9ffcfbbad68343a0782a1d90247<wbr>35b7649a46/Wrapping/Python/<wbr>vtk/qt5/<wbr>QVTKRenderWindowInteractor.py</a></div><div><br></div><div>Thank you,</div><div>Steve</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><div></div></div><br>______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_<wbr>FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://vtk.org/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">https://vtk.org/mailman/<wbr>listinfo/vtkusers</a><br>
<br></blockquote></div></div>