QT is a cross platform framework and takes care of hiding away things like WinMain and WindowProcs and instead provides a platform neutral abstraction.
Fortunately OpenGL is directly supported by QT – and they even have a page showing how to integrate OpenGL with QT here:
solved Using winapi and opengl functions(c++) in Qt application (wndproc)