<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style></head><body lang=EN-GB link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal><span lang=EN-US>Hi everyone,</span></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=EN-US>I was wondering if anyone managed to integrate VTK and Qt Quick 2. I found this post: <a href="https://gist.github.com/nocnokneo/c3fb01bb7ecaf437f7d6">https://gist.github.com/nocnokneo/c3fb01bb7ecaf437f7d6</a> which gives an example of integration. And it works great with VTK 6.3. But using the OpenGL2 backend in 6.3 or using VTK 7.0 rc, it crashes in OpenGLInitState() at the first OpenGL call. Even a call to “glEnable(GL_DEBUG_OUTPUT);” crashes. I checked the handle returned by wglGetCurrentContext() and it’s not NULL so it seems to have a valid OpenGL context. That would be awesome to be able to use the “new” VTK rendering backend along with a GUI made with Qt Quick 2.<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=EN-US>I also found this post from Kitware: </span><a href="http://www.kitware.com/blog/home/post/688">http://www.kitware.com/blog/home/post/688</a><span lang=EN-US>. If I understand correctly, </span>ExternalVTKWidget<span lang=EN-US> seems to be a helper class for making it easier to use </span>vtkExternalOpenGLRenderWindow<span lang=EN-US>, </span>vtkExternalOpenGLRender<span lang=EN-US> and </span>vtkExternalOpenGL<span lang=EN-US>Camera. But I could not find any working example. How is it supposed to be used? Could we use those classes in a class inheriting from QWindow so VTK can use the OpenGL context created by Qt? It is how those classes are intented to be used?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Do you intend to release a QVTKQuickItem or QVTKWindow at some point? I know there is a QVTKWidget but there is nothing for Qt Quick. From my understanding, </span>ExternalVTKWidget<span lang=EN-US> could be used for QtQuick integration. So do you intent to release a class to support QtQuick? An example on how to use </span>ExternalVTKWidget<span lang=EN-US> would be great already.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Any help would be greatly appreciated.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Regards,</span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>O<span lang=EN-US>livier</span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'><o:p> </o:p></span></p></div></body></html>