SnapShot issues when using vtkPNGWriter

I am integrating QML and VTK using QQuickVTKItem.
When trying to capture the screen as shown below, only a gray image is saved.

image

When calling renderLargeImage->Update(), the following warning appears:
Warning: In vtkGenericOpenGLRenderWindow.cxx, line 239
vtkGenericOpenGLRenderWindow (000002475740E7C0): ReadPixels called before window is ready for rendering; ignoring.

Although ReadyForRendering should be set to True, setting ReadyForRendering to True in QQuickVTKItem does not solve the issue.

How should I modify QQuickVTKItem so that I can use the snapshot feature in VTK?