[vtkusers] AW: vtk_qt -- making the renderwindow dynamically resize

Carsten Kubler kuebler at ira.uka.de
Wed Aug 13 03:40:14 EDT 2003


Hello,

> I just installed vtk_qt and got it working to the point where I can make 
> a renderWindow appear inside a qframe in my application, but I'm not 
> sure how to get the renderwindow to expand and fill the qframe when it 
> is resized. I'd be very grateful if you could tell me how to do this.

Try to use a qhbox between qframe and vtkqglrenderwindow

> Also, my code differs from the vtk_qt example since I'm using a qframe 
> and not a qscrollview. Since qframe has no addchild method, I just left 
> that part of the example steps out of my code, and it seems to work 
> fine. Will this cause any problems?

Do you use the latest version of vtk-qt?

Carsten



More information about the vtkusers mailing list