You should use the Qt based vtkRenderWindowInteractor, QVTKInteractor. &nbsp;QVTKWidget makes one for you already, or you can specify one yourself.<br><br>Clint<br><br>----- Reply message -----<br>From: &quot;florian&quot; &lt;florian@tricksoft.de&gt;<br>Date: Thu, Jun 16, 2011 5:39 am<br>Subject: [vtkusers] QVTKWidget + vtkRectilinearWipeWidget<br>To: &lt;vtkusers@vtk.org&gt;<br><br>Hallo,<br><br>Im trying to use a vtkRectilinearWipeWidget in my Qt Application.<br><br>When I create a new vtkRenderWindowInteractor everything works fine and <br>i get a completely working widget in a seperate window. But I want the <br>widget to be within my Application, where i created a qvtkwidget.<br><br>The problem is, when i run my application the vtkRectilinearWipe <br>appears, but all the widget features are missing (like the sliders to <br>move the split).<br><br>Instead i&#39;m able to rotate the 2D Image with the mouse.<br><br><br>Below I pasted my code (Pastebin alternatively)<br>I would be really thankful if somebody could take a look at it and maybe <br>figure out what I&#39;m doing wrong.<br><br><a href="http://pastebin.com/ufaiyPzv">http://pastebin.com/ufaiyPzv</a><br><br><br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; vtkWidgetFixed1 = new QVTKWidget();<br><br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; m_pMainWindow-&gt;setCentralWidget(vtkWidgetFixed1);<br><br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; vtkImageConstantPad* pad1 = <br>vtkImageConstantPad::New();<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pad1-&gt;SetInput(volume1-&gt;getData());<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pad1-&gt;SetConstant(0.0);<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pad1-&gt;SetOutputWholeExtent(0, 511, 0, 511, 0, 0);<br><br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; vtkImageConstantPad* pad2 = vtkImageConstantPad::New();<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pad2-&gt;SetInput(volume2-&gt;getData());<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pad2-&gt;SetConstant(0.0);<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pad2-&gt;SetOutputWholeExtent(0, 511, 0, 511, 0, 0);<br><br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wipe = vtkSmartPointer&lt;vtkImageRectilinearWipe&gt;::New();<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wipe-&gt;SetInput(0,pad1-&gt;GetOutput());<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wipe-&gt;SetInput(1,pad2-&gt;GetOutput());<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wipe-&gt;SetPosition(10,256);<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wipe-&gt;SetWipe(0);<br><br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; vtkSmartPointer&lt;vtkRenderer&gt; ren1 = <br>vtkSmartPointer&lt;vtkRenderer&gt;::New();<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; vtkSmartPointer&lt;vtkRenderWindow&gt; renWin = <br>vtkWidgetFixed1-&gt;GetRenderWindow();<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; vtkSmartPointer&lt;vtkRenderWindowInteractor&gt; iren = <br>vtkWidgetFixed1-&gt;GetInteractor();<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; renWin-&gt;AddRenderer(ren1);<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; renWin-&gt;SetInteractor(iren);<br><br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; vtkImageMapToWindowLevelColors *m_WLFilter = <br>vtkImageMapToWindowLevelColors::New();<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; m_WLFilter-&gt;SetOutputFormatToLuminance();<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; m_WLFilter-&gt;SetInput( wipe-&gt;GetOutput() );<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; m_WLFilter-&gt;SetWindow(1000.0);<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; m_WLFilter-&gt;SetWindow(400.0);<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; m_WLFilter-&gt;UpdateWholeExtent();<br><br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; vtkSmartPointer&lt;vtkImageActor&gt; wipeActor = <br>vtkSmartPointer&lt;vtkImageActor&gt;::New();<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wipeActor-&gt;SetInput(m_WLFilter-&gt;GetOutput());<br><br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; vtkSmartPointer&lt;vtkRectilinearWipeWidget&gt; wipeWidget = <br>vtkSmartPointer&lt;vtkRectilinearWipeWidget&gt;::New();<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wipeWidget-&gt;SetInteractor(iren);<br><br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; vtkRectilinearWipeRepresentation *wipeWidgetRep= <br>static_cast&lt;vtkRectilinearWipeRepresentation <br>*&gt;(wipeWidget-&gt;GetRepresentation());<br><br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wipeWidgetRep-&gt;SetImageActor(wipeActor);<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wipeWidgetRep-&gt;SetRectilinearWipe(wipe);<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wipeWidgetRep-&gt;GetProperty()-&gt;SetLineWidth(2.0);<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wipeWidgetRep-&gt;GetProperty()-&gt;SetOpacity(0.75);<br><br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ren1-&gt;AddActor(wipeActor);<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ren1-&gt;SetBackground(0.1, 0.2, 0.4);<br><br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; iren-&gt;Initialize();<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; renWin-&gt;Render();<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wipeWidget-&gt;On();<br>_______________________________________________<br>Powered by www.kitware.com<br><br>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br><br>Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a><br><br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a><br><br><br>