title: Qt5.2.1 : error: gl.h included before glew.h is NOT SOLVED
body: <p>I have been trying to solve the widely known problem with including GLEW into Qt.And I still haven't succeeded.
  Before people here start downvoting for repeating question; I actually went through <a href="https://stackoverflow.com/questions/8580675/error-gl-h-included-before-glew-h">this</a> ,<a href="https://stackoverflow.com/questions/15479374/opengl-wih-qt5-error-gl-h-included-before-glew-h">this</a> and <a href="https://stackoverflow.com/questions/21415319/fatal-error-gl-h-included-before-glew-h">this</a> SO post which explain the workaround.</p>
  
  <ol>
  <li><p>I recompiled Qt 5.2.1 from sources using opengl desktop configs. Didn't help.</p></li>
  <li><p>I put <code>glew.h</code> and Qt unrelated stuff into another header/cpp and it also didn't help.</p></li>
  <li><p>I tried to include <code>glew.h</code> before my <code>#include &lt;QGLWidget&gt;</code> and it didn't work as well.The only case it does work is when I put <code>glew.h</code> at the top of <code>main.cpp</code> which is of course unacceptable in app design terms.</p></li>
  </ol>
  
  <p>So I am asking what else can be done here? I know I can use Qt gl headers which supply GL function pointers just like GLEW but I <strong>can't</strong> do that as I have a lib linked to Qt which uses GLEW. Once I use that lib content I am getting all that mess with "<code>gl.h</code> included before <code>glew.h</code>".</p>