[vtkusers] VTK+Qt+Linux Opens Two OpenGL Windows
David Doria
daviddoria at gmail.com
Thu Nov 24 16:03:46 EST 2011
On Thu, Nov 24, 2011 at 3:59 PM, Jim Pelton <jimpelton at u.boisestate.edu> wrote:
> Thanks David, your suggestion gave me a place to start looking and I solved
> the problem.
>
> I wasn't explicitly calling renderWindowInteractor->Start(), but I was
> creating an extra vtkRenderWindowInteractor and associating it with the
> existing vtkRenderWindow, and then adding that renderWindow to the
> QVTKWidget.
>
> Now that I have removed the line that adds the render window to that extra
> interactor the extra window no longer appears. I'll take a look at the vtk
> source so that I can understand what is happening a little better.
>
> Thanks again,
> Jim
Great. Yea, all you have to do is give the widget a renderer, as shown here:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Qt/RenderWindowUIMultipleInheritance
David
More information about the vtkusers
mailing list