[vtkusers] vtk_qt -- renderwindow widget won't obey layout rules

Josh Snyder jsnyder at nmr.mgh.harvard.edu
Tue Aug 12 10:41:34 EDT 2003


Hi,

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. Does anyone know how to do this?

Also, my code differs from the vtk_qt example (which also doesn't 
resize) 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?

Finally, I'm using cmake with the QT_WRAP commands to compile my code. 
However, this fails to incorporate the button icons found in the images 
directory of the project. qmake will set it up so that uic processes 
these in some way to create a qmake_image_collection.cpp file which is 
then built with the rest of the project. The QT_WRAP_UI command in cmake 
does not do this. Does anybody have a solution?

Thanks very much,

Josh




More information about the vtkusers mailing list