[vtkusers] VTK+Qt+Linux Opens Two OpenGL Windows

David Doria daviddoria at gmail.com
Thu Nov 24 15:03:53 EST 2011


On Thu, Nov 24, 2011 at 2:57 PM, Jim Pelton <jimpelton at u.boisestate.edu> wrote:
> Hello all, I've googled around but haven't found the magic combo to locate
> the answer to this question.
>
> I'm writing a VTK+Qt application using QVTKWidget. When I start the
> application in linux (fedora 15) two windows open up, both the same size.
> This only happens in Linux, but not win 7.
>
> One is totally blank and titled "Visualization Toolkit - OpenGL." The other
> is the actual application window with the Qt widgets (including the
> QVTKWidget) in it. This window works fine.
>
> So, I'd like to get rid of this second window. I'm actually not sure where
> to begin as I'm pretty new to VTK, so any pointers or hints would be greatly
> appreciated. I'm not even sure which part of the code I could post!
>
>
> Thanks,
> Jim

It sounds to me like you started the VTK event loop (with
renderWindowInteractor->Start();). There is no need to do this if you
are using a QVTK widget from a Qt widget.

Let us know if that was the case.

David



More information about the vtkusers mailing list