VTK support for Qt

I m using Ubuntu 20.04 and Qt5.13.2.
I was using VTK 7.1 till now and had generated QVTKWidgetPlugin.so file to be used in Qt. Now I have upgraded my VTK to latest version 9.1.0 and I have seen in multiple posts that QVTKWidgetPlugin is deprecated from 8.2 onwards and is replaced by QVTKOpenGLWidget. How to generate it’s .so file and use it in Qt?

This example may help SideBySideRenderWindowsQt, it uses QVTKOpenGLNativeWidget.