How to avoid that vtk&#39;s renderization window appears? What happens is that I use the widget from QVTKWidget and because it i don&#39;t need anymore the window created from vtk to rendering the image but I can&#39;t to cut some points where I think this window will disappear because it influences on the image that widget loads. I&#39;m pasting here the code snippet since the criation of &quot;vtkImageActor&quot; until the transform of the image to widget. If you need anymore information to help me it&#39;s just to say.<br>
<br><br> vtkImageActor     *viewer = vtkImageActor::New();<br><br> vtkImageCast *cast = vtkImageCast::New();<br> cast-&gt;SetInput(connector-&gt;GetOutput());//information about the image<br> cast-&gt;SetOutputScalarTypeToUnsignedChar();<br>
 viewer-&gt;SetInput(cast-&gt;GetOutput());<br><br> vtkRenderer *ren1= vtkRenderer::New();<br> vtkRenderWindow *renWin = vtkRenderWindow::New();<br><br> vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New();<br>
 iren-&gt;SetRenderWindow(renWin);<br><br> renWin-&gt;SetSize( 600, 600 );<br><br> ren1-&gt;AddActor(viewer);<br> ren1-&gt;SetBackground(0.4,0.6,0.8);<br><br> renWin-&gt;AddRenderer( ren1 );<br> ren1-&gt;ResetCamera();<br>
 ren1-&gt;GetActiveCamera()-&gt;Zoom(1.5);<br><br> renWin-&gt;Render();<br><br> renWin-&gt;SetStereoTypeToDresden();<br> iren-&gt;GetRenderWindow()-&gt;Finalize();//doesn&#39;t help to close window<br> iren-&gt;TerminateApp();////doesn&#39;t help to close the window<br>
 widget-&gt;SetRenderWindow(renWin);//end of  transform of the image to widget<br><br><br>-- <br><div>Brenno Bernardes Ribeiro<br><br>Engenharia da Computação</div><div>
Universidade Federal do Pará</div><div style="padding:0px;overflow:hidden;margin-left:0px;margin-top:0px;color:black;font-size:10px;text-align:left;line-height:130%"></div><br>