[vtkusers] Trouble with QVTK

Joshua Pedrick jpedrick at gmail.com
Tue May 12 09:36:14 EDT 2009


L.J. I think I do this in MainWindow::SetupScene() at the very end:

               qvtkwidget->GetRenderWindow()->AddRenderer(ren);
               qvtkwidget->GetRenderWindow()->BordersOn();

               ren->Delete();

Is this not the correct way to add a renderer? I do get the lovely gradient
background I applied to the renderer, but no actors. The gradient background
makes me think the renderer is properly connected to the render window.

I'm going to compile the stable version of VTK today and see how it goes.
I'm really suspecting there is a bug in the CVS QVTK.

             Regards
                  -Joshua

2009/5/12 L.J. van Ruijven <L.J.vanRuijven at amc.uva.nl>

> Hi Joshua,
>
> I think you forgot to connect the renderer to the renderwindow. Somewhere
> you should add the statement renWin->AddRenderer(ren).
>
> regards,
>
> Leo
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090512/4de7c74b/attachment.htm>


More information about the vtkusers mailing list