Thank you to everyone finally I've decided to migrate (it was about time!) from the old QtOpenGl support to the newer methods ie QGLFramebufferObject -> QOpenGLFramebufferObject it takes a lot to refactoring but I think it will save time for the future.