[vtkusers] Problem about clear qvtkWidget renderwindow

Gomez, Alberto alberto.gomez at kcl.ac.uk
Wed May 5 06:54:20 EDT 2010


By clearing the window, do you mean removing all the actors? If so, you
could do something like

ren->RemoveAllViewProps();
ren->Render();

Alberto


On 05/05/10 05:55, njuzg wrote:
> Hi, all:
>
>
> I am trying to create a VTK+QT application, something just like the example
> in the VTK example/GUI/Qt/Qsimpleview folder. I tried to create a command
> new in that example which can clean the window in order to reopen a new
> file. Does anyone know how to implement it?
>
> Any help will be appreciated!
>
> Guang 
>   


-- 

Alberto Gómez

/Division of Imaging Sciences
The Rayne Institute
4th Floor, Lambeth Wing
St Thomas' Hospital
London SE1 7EH /

phone: +44 (0) 20 718 88364
email: alberto.gomez at kcl.ac.uk <mailto:alberto.gomez at kcl.ac.uk>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100505/309c5299/attachment.htm>


More information about the vtkusers mailing list