I am writing an OpenGL engine that is not tied to any windowing framework. It uses GLEW to retrieve the OpenGL functions. It works perfect with GLFW, but can't figure out how to get to GLFW share its context with Qt to be able to use GLEW functions on both of them.
More specifically, I want to create a GLFW window and use its context in an QOpenGLWidget and vice versa but be able to use GLEW provided functions to render to both windows.
Is this possible, and how?