Re: OpenGL and Qt Question
I don't know much about opengl but this function may help you:
OpenGLVersionFlags QGLFormat::openGLVersionFlags ()
It returns the OpenGlVersionFlags struct that tells you the details about what version of opengl is supported on your system.
http://doc.trolltech.com/4.3/qglformat.html#openGLVersionFlags
Re: OpenGL and Qt Question
You have to run QGLWidget::makeCurrent() before using any OpenGL function, as I see it now. The exception goes to QGLWidget::initializeGL(), QGLWidget::resizeGL(), QGLWidget::paintGL(), where QGLWidget::makeCurrent() is implicitly called for you.