[vtkusers] QT VTK and Activate Error
Clinton Stimpson
clinton at elemtech.com
Wed Apr 18 14:48:11 EDT 2012
You could zip up the sources and send it.
On Wednesday, April 18, 2012 10:46:45 am Doug Hoppes wrote:
> 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
More information about the vtkusers
mailing list