[vtkusers] QVTKWidget existing interactors

David Doria daviddoria+vtk at gmail.com
Wed Apr 14 17:43:16 EDT 2010


On Wed, Apr 14, 2010 at 5:27 PM, Robbie Banks <robbie.banks at gmail.com>wrote:

> Is the interactor in the QVTKWidget initialized and started by default?
>
> I've been trying to add a VTKSplineWidget on request, but I keep getting
> the
> following error when I try and start the interactor after creating the
> SplineWidget.
>
> ERROR: In /opt/wai/vth/vth-5.4.2/GUISupport/Qt/QVTKWidget.cxx, line 1055
> QVTKInteractor (0x3864640): QVTKInteractor cannot control the event loop
>
> Then when I run the mouse of the VTK window, the code crashes out.
>
> The example on the Wiki only cover standalone VTK windows, not the
> QVTKWidget. Do I have to create all the Widgets I want in the construction
> of the window and then turn them on and off as and when I need them, in
> order for the interactor to work?
>
> Cheers
> Robbie
>

Robbie,

Take a look at some of these examples:
http://www.vtk.org/Wiki/VTK/Examples#Qt

<http://www.vtk.org/Wiki/VTK/Examples#Qt>See if those work for you and let
us know.

Thanks,

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100414/8d07890c/attachment.htm>


More information about the vtkusers mailing list