[vtkusers] QVTKRenderWindowInteractor - Finalize method not called when QMainWindow is closed

redmod79 michael.j.redmond at gmail.com
Wed Feb 25 09:11:29 EST 2015


Using vtk 6.1 and 6.2rc1, when QVTKRenderWindowInteractor is used with
PySide, its Finalize method is not called when the QMainWindow it is a child
of is closed.  Actually, it's QMainWindow.ui.QVTKRenderWindowInteractor.

When only 1 vtkRenderWindow is present (the one contained in
QVTKRenderWindowInteractor), no errors occur when QMainWindow is closed. 
However, if an additional vtkRenderWindow is present, the following error
(sometimes repeated) will pop up in a vtkOutputWindow

"vtkWin32OpenGLRenderWindow (xxxxxx): wglMakeCurrent failed in
MakeCurrent()..."

I put a print statement inside the Finalize method and it seems that it is
never called automatically.

When I call the Finalize method in the QMainWindow closeEvent, the error
does not appear.  Is there a reason that the Finalize method is not being
called automatically when the hidden widget is destroyed?



--
View this message in context: http://vtk.1045678.n5.nabble.com/QVTKRenderWindowInteractor-Finalize-method-not-called-when-QMainWindow-is-closed-tp5730524.html
Sent from the VTK - Users mailing list archive at Nabble.com.


More information about the vtkusers mailing list