title: Grab current OpenGL context with Qt
body: <p>I have written a Qt based dll with some OpenGL calls. If I load my DLL from my Qt application with QGLWidget used for rendering, a call to QGLContext::currentContext from the DLL returns the correct context. But if use my DLL in a non Qt based program there is no QGLContext returned. As a result I couldn't use QGLShaderProgram in non Qt based apps.</p>
  
  <p>What I am doing wrong?</p>
  
  <p>P.S. Direct calls to glCreateProgram and so on in my library seem to work fine, but I want to use Qt classes.</p>