<div><div class="gmail_quote">On Wed, Apr 14, 2010 at 5:27 PM, Robbie Banks <span dir="ltr">&lt;<a href="mailto:robbie.banks@gmail.com">robbie.banks@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Is the interactor in the QVTKWidget initialized and started by default?<br>
<br>
I&#39;ve been trying to add a VTKSplineWidget on request, but I keep getting the<br>
following error when I try and start the interactor after creating the<br>
SplineWidget.<br>
<br>
ERROR: In /opt/wai/vth/vth-5.4.2/GUISupport/Qt/QVTKWidget.cxx, line 1055<br>
QVTKInteractor (0x3864640): QVTKInteractor cannot control the event loop<br>
<br>
Then when I run the mouse of the VTK window, the code crashes out.<br>
<br>
The example on the Wiki only cover standalone VTK windows, not the<br>
QVTKWidget. Do I have to create all the Widgets I want in the construction<br>
of the window and then turn them on and off as and when I need them, in<br>
order for the interactor to work?<br>
<br>
Cheers<br>
<font color="#888888">Robbie<br>
</font><div class="im"></div></blockquote></div><br></div><div>Robbie,<div><br></div><div>Take a look at some of these examples:</div><div><a href="http://www.vtk.org/Wiki/VTK/Examples#Qt">http://www.vtk.org/Wiki/VTK/Examples#Qt</a></div>
<div><br></div><div><a href="http://www.vtk.org/Wiki/VTK/Examples#Qt"></a>See if those work for you and let us know.</div><div><br clear="all">Thanks,<br><br>David</div></div>