<div dir="ltr">Hi Robert,<div><br></div><div>Please take a look into VTK/GUISupport/Qt/Testing/Cxx/QVTKOpenGLWidget* for example usage of the QVTKOpenGLWidget</div><div><br></div><div>Best, </div><div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Mathieu Westphal<br></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Sep 26, 2018 at 10:19 PM <<a href="mailto:robert.hedges@lickenbrocktech.com">robert.hedges@lickenbrocktech.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>
<p> </p>
<p>I'm running VTK master branch (qt 5.10.1) and have code that will run in Windows but not in Linux:<br> <br>The ui file defines the qvtkWidget as a QVTKOpenGLWidget<br> <br>These lines run as expected:<br> <br> <br><span style="font-family:'courier new',courier">vtkSmartPointer<vtkGenericOpenGLRenderWindow> vRendWin=vtkSmartPointer<vtkGenericOpenGLRenderWindow>::New();</span><br><span style="font-family:'courier new',courier">vtkSmartPointer<vtkRenderer> vRend=vtkSmartPointer<vtkRenderer>::New();</span><br><span style="font-family:'courier new',courier"> ui.qvtkWidget->SetRenderWindow(vRendWin);</span></p>
<p><br><span style="font-family:'courier new',courier">However, this line causes a segfault:</span></p>
<p><br><span style="font-family:'courier new',courier">ui.qvtkWidget->GetRenderWindow()->AddRenderer(vRend);</span></p>
</div>
<div> </div>
<div><em style="box-sizing:border-box;font-family:Calibri,sans-serif;font-size:14.6667px;background-color:#ffffff"> </em></div>
_______________________________________________<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/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_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=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">https://public.kitware.com/mailman/listinfo/vtkusers</a><br>
</blockquote></div>