<div dir="ltr">Can you try <br><br>Renderer-&gt;SetBackground(0,0,0);<br>renderWin-&gt;Render();<br><br>in the constructor of your mainWindow?<br><br>Jothy<br><br><div class="gmail_quote">On Tue, Feb 21, 2012 at 3:35 AM, Ahmad <span dir="ltr">&lt;<a href="mailto:falahatpisheh@gmail.com">falahatpisheh@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">Hi All,<br>
<br>
I am using a qvtkWidget in a .ui form. When the form loads, the contents of<br>
the widget is exactly the content of the screen behind the form. However,<br>
when I, for example, render a vtk Sphere, the widget shows what it is<br>
expected to show. My question is: can I initialize the widget to show a<br>
complete black background inside the widget at the time the .ui file loads?<br>
<br>
Thanks,<br>
Ahmad<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/Initialize-a-QVTKWidget-tp5501063p5501063.html" target="_blank">http://vtk.1045678.n5.nabble.com/Initialize-a-QVTKWidget-tp5501063p5501063.html</a><br>

Sent from the VTK - Users mailing list archive at Nabble.com.<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>
</font></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">Jothy<br></div><br>
</div>