title: Qt doesn't create OpenGL context
body: <p>I'm new to Qt and am trying to configure my Qt5 environment to work with an OpenGL widget. I've followed a number of tutorials and tidbits online but nothing seems to be working. I've created a window in the Designer and then manually added my own subclass of the QGLWidget to the window's layout (per tutorial instructions). I filled in the <code>paintGL</code> <code>initializeGL</code> and <code>resizeGL</code> functions as well. I was previously using glut glew, so I tossed glew into the build path for Qt. I've learned that in order to use glew with Qt, you must not include Qt OpenGL headers. I have also defined out <code>QT_NO_OPENGL_ES</code> and <code>QT_NO_OPENGL_ES_2</code>.</p>
  
  <p>However, no matter what I do, I can't get my window to display anything but black - it won't even clear to a color. Further, I have some print statements in my widget class in order to indicate the OpenGL and GLSL versions, but nothing prints until I exit the window. From there I get the Glew error "Missing GL version." <strong>Update</strong>: I can't tell if this is due to having different windows (which I'm unfamiliar with) or if these methods weirdly just don't get called until I close the window (why?).</p>
  
  <p>I've tried various combinations of advice from across the interwebs but nothing has helped. All I want is to be able to use up to date (4.2 on my comp) OpenGL and Qt (for widgets). </p>
  
  <p>Tech specs:</p>
  
  <ul>
  <li>Qt 5</li>
  <li>Mingw compiler</li>
  <li>Windows 7</li>
  <li>Glew is being linked statically (.a)</li>
  </ul>