Skip to content

Inherit from QOpenGLWidget instead of QGLWidget

Latest
Compare
Choose a tag to compare
@GillesDebunne GillesDebunne released this 15 Jun 18:55
· 37 commits to main since this release

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 of updateGL() is one of them.
  • The renderText methods were backported to maintain backward compatibility.
  • Some overloaded constructors (using a QGLFormat or a sharedWidget) are deprecated since they have no equivalent.