Typically for OpenGL you want to subclass QGLWidget and reimplement three methods:
1) initializeGL()
2) resizeGL()
3) paintGL()
Using opengl calls for rendering outside of QGLWidget requires to call beginNativePainting() method of QPainter object.
some opengl + Qt examples : link
Btw. nice retirement plan![]()
Bookmarks