You don't need the OpenGL version of Qt to use OpenGL in your application. The OpenGL in the Qt version only tells you what backend the Qt graphics use internally.
See this wiki page for details.
This page, although a tad outdated, should still tell you how to properly build Qt on Windows with MinGW-w64. There's some dependencies you'll need to compile as well. And lots of time.