[vtkusers] Trouble using VTK Widget with QVTK

Todd Martin nztoddler at yahoo.com
Sat Jul 7 20:42:08 EDT 2018


 Have you checked the class of the renderWindow object in comparison with ui->widget->GetRenderWindow()?

/////////////////////////////////////////////////////////////////////////////////////////////////////
    // OPTION 1: Use this for a plain non-QT VTK window. The
Polygonalsurfaceinteractor works fine
    //vtkSmartPointer<vtkRenderWindow> renderWindow =
vtkSmartPointer<vtkRenderWindow>::New();

Have you tried
vtkSmartPointer<vtkRenderWindow> renderWindow = vtkSmartPointer<vtkRenderWindow>::New();
ui->widget->SetRenderWindow(renderWindow);


Todd


--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/vtkusers
  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/vtkusers/attachments/20180708/583a56d2/attachment.html>


More information about the vtkusers mailing list