Actor flash once after change actor input connect

I have an actor in renderer window with QVTKOpenGLNativeWidget
And every time I changed actor input poly data, than I interact with mouse.
It will show old vision suddenly.
Why that happened? Any solution?

actor->GetMapper()->SetInputPort(newPolyData);
renderer->Render();

That’s all

@Thomas_Caissard : Did you hit this issue recently ?

Did you correctly attached the renderer to the window and the window to the renderer ? What most likely happens is that your window is not aware of the renderer, and when you interact with it, it renders an empty one.

Yes, I did assign renderer to window and widget.
Here is a demo image.
ezgif-1-826e11a35d84

Hi Thomas,
Can u see know what’s the matter in my program with this picture?
Thanks!