QVTKOpenGLNativeWidget vkt9+qt5 framebuffer errors when using setParent

Hi,

I’m trying to migrate my code from Vtk 8.2 to 9.1 using QT 5.15. My main problem is VTK+QT widget. I’ve been using my own VTKQT widget implementation for some years based on QVTKOpenGLNativeWidget.
After updating to VTK9.1 I can create a stand-alone widget (without a parent) and it works fine. But when I try to reparent using “setParent” QT method (as I did without any problems with 8.2) to change the layout in my application it throws “failed at glDeleteFramebuffers 16 Opengl errors detected” and application crashes.

I would be grateful for any tips.