[vtkusers] vtkqt saving widget as an image

Matt Schmiermund matt at plasticflow.com
Tue Jun 8 14:16:18 EDT 2004


I am trying to save an image of Keubler's
vtkQtRenderWindow. I am using
QPixmap::grabWidget(vtkRenWin), which I have used
before with success. However when I do this the
resulting image is just a grey square the size of the
vtkRenWin. When I grabbed the whole main window I got
everything with it expect for the vtkQtRenderWindow.

Has anyone successfully saved images of
vtkQtRenderWindows through Qt? I saw that there are
vtkPNGWriters and the like, but seemed a bit more
complicated than the Qt method.

I appreaciate any help.

-Matt





More information about the vtkusers mailing list