[vtk-developers] Fwd: QVTKWidget segfault on Linux with Qt5, VTK6.2, GCC4.9, C++14
Júlio Hoffimann
julio.hoffimann at gmail.com
Wed Jan 14 13:58:58 EST 2015
Hi Oon-Ee,
I just did what Marcus said, we have to make sure the reference count
doesn't go to zero for the orientation widget. It's not being referenced
anywhere else in the code, so when the constructor finishes its job, the
local variable is destroyed.
You just have to make the orientation widget a member of your viewer class,
initialize it in the constructor as m_orientationWidget =
vtkSmartPointer<vtkOrientationMarkerWidget>::New(); and that is it.
-Jùlio.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20150114/9cf97665/attachment.html>
More information about the vtk-developers
mailing list