1
votes

How to avoid that vtk's renderization window appears? What happens is that I use the widget from QVTKWidget and because it i don't need anymore the window created from vtk to rendering the image but I can't to cut some points where I think this window will disappear because it influences on the image that widget loads. I already tried somethings like use vtkobject destructors like Delete() and method to clear the vtkRenderWindowInteractor like SetRenderWindow(NULL) but none of them works. To simplifying, how to close automatically a opened vtk window?

Snapshot

*"Rendering Window" is the window created by vtk and behind it "Application" is the window from my application.

*"Rendering Window" only will be closed when "Application" ends.

2
the image of the problem i.stack.imgur.com/DkOYl.jpgBrenno

2 Answers

1
votes

Under MS Windows, vtkRenderWindow::Finalize() works for me...

0
votes

The QVTKWidget is derived from a QWidget, and you should use the standard methods Qt makes available. When using the QVTKWidget you are actually using Qt's event loop. Did you try calling close on the QVTKWidget?