According to this thread[1], before constructing the QGLContext you need to create a QPaintDevice (e.g. QGLWidget) up-front and then use the marked-as-obsolete QGLContext constructor that takes a QPaintDevice.
[1] http://lists.trolltech.com/qt-interest/2008-08/thread00046-0.html
According to this thread[1], before constructing the QGLContext you need to create a QPaintDevice (e.g. QGLWidget) up-front and then use the marked-as-obsolete QGLContext constructor that takes a QPaintDevice.
[1] http:// lists.trolltech .com/qt- interest/ 2008-08/ thread00046- 0.html