Here ftp://ftp.informatik.hu-berlin.de/pu...GLTutorial.pdf you have a great tutorial on how to do OpenGL the Qt way. Note that by now QGLWidget class is a bit outdated, QOpenGLWidget should be used instead