[vtkusers] Initialize a QVTKWidget
Jothybasu Selvaraj
jothybasu at gmail.com
Tue Feb 21 04:17:47 EST 2012
Can you try
Renderer->SetBackground(0,0,0);
renderWin->Render();
in the constructor of your mainWindow?
Jothy
On Tue, Feb 21, 2012 at 3:35 AM, Ahmad <falahatpisheh at gmail.com> wrote:
> Hi All,
>
> I am using a qvtkWidget in a .ui form. When the form loads, the contents of
> the widget is exactly the content of the screen behind the form. However,
> when I, for example, render a vtk Sphere, the widget shows what it is
> expected to show. My question is: can I initialize the widget to show a
> complete black background inside the widget at the time the .ui file loads?
>
> Thanks,
> Ahmad
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/Initialize-a-QVTKWidget-tp5501063p5501063.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
--
Jothy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120221/3220740e/attachment.htm>
More information about the vtkusers
mailing list