Questions about the vtkAnimationScene

I want to make a video by vtkAnimationScene. I have referenced this link

When I ran this code in the qt window, there was a problem of blocking the interface and causing it to not refresh. i call vtkAnimationScene::Play() when button was clicked.

So. i want to known how to use vtkAnimationScene to avoid this problem.

Could you please advise for me?

Thank you :slightly_smiling_face: