[vtkusers] Problem with checkerWidget in VTK+QT

David Doria daviddoria+vtk at gmail.com
Tue Aug 10 11:07:43 EDT 2010


On Tue, Aug 10, 2010 at 11:02 AM, Jothy <jothybasu at gmail.com> wrote:
> Thanks Eric,
>
> It fixed part of the problem!
>
> Now, it doesn't throw the error, but the checkerWidget handles disappear as
> soon as I click in the render window.
>
> Jothy

I had a problem like this once. I had to move the declaration of the
vtk object (in this case the vtkCheckerboardWidget) to be a member of
the Qt class. The problem was that the smart pointer was being deleted
after the init function was exited.

I'm not sure if this is the same in your case because I couldn't tell
where that code you posted was living. If it doesn't work, maybe you
can post your actual files (or the smallest version of them that you
can create to duplicate the problem).

Thanks,

David



More information about the vtkusers mailing list