[vtkusers] Medical3 in QT

qlizhi qlizhi at gmail.com
Mon May 21 10:17:09 EDT 2012


Hello, the attachment is i revised from vtk'example medical3,  i just want to  get a cross-sectional view,  and the code works fine.


but  when i combine it with Qt,  and just modified a little code , qVTK1 is a  QVTKWidget* , some important code as belows:
  vtkRenderWindow* renwin = vtkRenderWindow::New();
  renwin->StereoCapableWindowOn();

  qVTK1->SetRenderWindow(renwin); 
  renwin->Delete();
  QVTKInteractor *iren=qVTK1->GetInteractor(); 

but when the mouse move into the QVTKInteractor area , the program crash down.  Can anybody help me ?Thank you!



qlizhi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120521/ba9d9bfe/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 94229 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120521/ba9d9bfe/attachment.jpeg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Medical3.cxx
Type: application/octet-stream
Size: 13721 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120521/ba9d9bfe/attachment.obj>


More information about the vtkusers mailing list