[vtkusers] QT VTK and Activate Error
Doug Hoppes
dhoppes at mbfbioscience.com
Wed Apr 18 12:46:45 EDT 2012
What would be the best way to provide an example? I do have a small sample program that is a variation of the Example program.
-----Original Message-----
From: vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] On Behalf Of Clinton Stimpson
Sent: Wednesday, April 18, 2012 12:27 PM
To: vtkusers at vtk.org
Subject: Re: [vtkusers] QT VTK and Activate Error
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
_______________________________________________
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
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers
More information about the vtkusers
mailing list