[vtkusers] QT VTK and Activate Error
Clinton Stimpson
clinton at elemtech.com
Wed Apr 18 12:27:02 EDT 2012
On Wednesday, April 18, 2012 08:36:55 am Doug Hoppes wrote:
> Hi all,
>
> I'm trying to get the QT/VTK working with VTK window being
> in a different dialog (other than the main application). In my main
> application, I have several docking widgets and one of the widgets
> contains the QGraphicsView (which contains the QVTKWidget2 control). 20%
> of the time, the VTK widget shows up fine. The other 80% of the time, I
> get a callback error in the QT activate method.
>
> I'm not sure what is going on. I just put a simple cube in
> my VTK window. Is there a cleanup procedure that I need to execute (on
> shutdown). I made sure that the VTK widgets and OpenGL contexts are
> destroyed on the destructor of the docking window.
Do you have an example you can give? The QVTKWidget2 destructor releases the
vtkRenderWindow, and the QVTKWidget2::SetRenderWindow() calls
vtkRenderWindow::Finalize() which should release all OpenGL resources that VTK
has allocated. Then its up to Qt to destroy the context used by QVTKWidget2,
hopefully after the VTK allocated resources are cleaned up.
--
Clinton Stimpson
Elemental Technologies, Inc
Computational Simulation Software, LLC
www.csimsoft.com
More information about the vtkusers
mailing list