OpenGL state errors with QVTKOpenGLWidget and vtk9.0

I am trying to put a QVTKOpenGLNativeWidget in QDialog with QVBoxLayout, while adding the vtkImageActor to QVTKOpenGLNativeWidget , that window don’t show any rendering result.

Oh , I have found out the problem. I just make the rendering processed in constructor function