QGLViewer extends QOpenGLWidget instead of the deprecated QGLWidget (huge thanks to Gianluca).
- Although there are minor differences between the two classes, the switch should be mostly invisible.
- Using
update()instead ofupdateGL()is one of them. - The
renderTextmethods were backported to maintain backward compatibility. - Some overloaded constructors (using a
QGLFormator a sharedWidget) are deprecated since they have no equivalent.