Inherit from QGLWidget.