<div class="gmail_extra">Could this  code be of some help:</div><div class="gmail_extra"><div class="gmail_extra"><br></div><div class="gmail_extra"> #include &quot;QVTKWidget.h&quot;</div><div class="gmail_extra">...</div>
<div class="gmail_extra">   QVTKWidget * imageWindow;</div><div class="gmail_extra">...</div><div class="gmail_extra">    imageWindow = new QVTKWidget( parentWidget );</div><div class="gmail_extra">    imageWindow-&gt;setObjectName( &quot;ImageWindow&quot; );</div>
<div class="gmail_extra">    imageWindow-&gt;setMinimumSize( QSize( DEFAULTWIN_X, DEFAULTWIN_Y ) );</div><div class="gmail_extra">    imageWindow-&gt;setMaximumSize( QSize( DEFAULTWIN_X, DEFAULTWIN_Y ) );</div><div class="gmail_extra">
    imageWindow-&gt;setGeometry( QRect( 2, 2, DEFAULTWIN_X, DEFAULTWIN_Y ) );</div><div class="gmail_extra">    imageWindow-&gt;resize( DEFAULTWIN_X, DEFAULTWIN_Y );</div><div class="gmail_extra">    vtkRenderWindowInteractor *interactor = imageWindow-&gt;GetInteractor( );</div>
<div class="gmail_extra">    vtkInteractorStyleImage * style = vtkInteractorStyleImage::New( );</div><div class="gmail_extra">    interactor-&gt;SetInteractorStyle( style );</div><div class="gmail_extra">    vtkRenderer *renderer = vtkRenderer::New( );</div>
<div class="gmail_extra">    renderer-&gt;AddViewProp(actor);</div><div class="gmail_extra">    imageWindow-&gt;GetRenderWindow()-&gt;AddRenderer( renderer );</div><div><br></div><div>Anka</div><div><br></div><br><div class="gmail_quote">
On Thu, Apr 26, 2012 at 7:54 AM, Ale <span dir="ltr">&lt;<a href="mailto:notinmyhead@gmail.com" target="_blank">notinmyhead@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">
But can I set actors from QT widgets? It sound a bit strange to me...<br>
<br>
Ale<br>
<br>
Il giorno 26/apr/2012, alle ore 13.08, Jothybasu Selvaraj ha scritto:<br>
<br>
&gt; You could manipulate the Z positon of the actors yuo add to the vtkRenderer, so that they all stay above the image.<br>
&gt;<br>
&gt;<br>
&gt; Jothy<br>
&gt;<br>
&gt; On Thu, Apr 26, 2012 at 12:01 PM, Ale &lt;<a href="mailto:notinmyhead@gmail.com">notinmyhead@gmail.com</a>&gt; wrote:<br>
&gt; Hello,<br>
&gt;<br>
&gt; I&#39;m going crazy trying to add extra &quot;layers&quot; to a qvtkwidget in order to have text labels, combo boxes and so on, among the qvtkwidget main view (such as a single slice of a 3dvolume). Is there a way to do it properly resorting to a mix of vtk and qt? Is there some &quot;canonical&quot; approach I&#39;m missing?<br>

&gt;<br>
&gt; Thanks,<br>
&gt; Ale<br>
&gt; _______________________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Jothy<br>
&gt;<br>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">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" target="_blank">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" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br></div>