I\'m starting out on using OpenGL with Qt, and with Shaders (I have OpenGL experience, but not with shaders yet)
I\'m following this tutorial: http://releases.qt-pro
You should create an QGLFormat object and pass it to the QGLWidget as a constructor parameter. The QGLFormat object should be created as showed in the code below.
QGLFormat
QGLFormat glFormat; glFormat.setVersion( 3, 2 ); glFormat.setProfile( QGLFormat::CoreProfile );