Hi, I loading data to QVTKWidget<br>I have some inicialization method. <br><br><span style="font-family: courier new,monospace;">void GUI::widgetInicialization(QVTKWidget *widget, vtkRenderer *ren)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">{</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    vtkRenderWindow *renwin = vtkRenderWindow::New();</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    ren = vtkRenderer::New();</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    renwin-&gt;AddRenderer(ren);</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    widget-&gt;SetRenderWindow(renwin);</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    widget-&gt;update();</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    renwin-&gt;Delete();</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">}</span><br><br>Then I load some data and display it...<br>
<br><span style="font-family: courier new,monospace;">    vtkSmartPointer&lt;vtkRenderer&gt; renderer = vtkSmartPointer&lt;vtkRenderer&gt;::New();</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    renderer-&gt;AddActor(actor);</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    widget-&gt;GetRenderWindow()-&gt;AddRenderer(renderer);</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    widget-&gt;GetRenderWindow()-&gt;Render();</span><br>
<br>But when I load some data previous data stay in renderer? How to delete renderer? <br>I try before each data loading call this method...<br><br><span style="font-family: courier new,monospace;">void GUI::widgetInicialization(QVTKWidget *widget, vtkRenderer *ren)</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">{</span><br><span style="font-family: courier new,monospace;">    try</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    {</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">        widget-&gt;GetRenderWindow()-&gt;Delete();</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    }</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    catch(...)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    {}</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">
    vtkRenderWindow *renwin = vtkRenderWindow::New();</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    ren = vtkRenderer::New();</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    renwin-&gt;AddRenderer(ren);</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    widget-&gt;SetRenderWindow(renwin);</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    widget-&gt;update();</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    renwin-&gt;Delete();</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">}</span><br><br>but any reasons :(<br>Do you hepl me please how to delete renderers?<br><br>Thank you<br>