Just to share my finding that moving to QOpenGLWidget, from QGLWidget. The changes is quite straight forward (by replacing QGLWidget --> QOpenGLWidget, ..).
To make it work, the tricky part is to replace paintEvent with paintGL to avoid issue with display. The complete change is in fork out code in my github.
Just to share my finding that moving to QOpenGLWidget, from QGLWidget. The changes is quite straight forward (by replacing QGLWidget --> QOpenGLWidget, ..). To make it work, the tricky part is to replace paintEvent with paintGL to avoid issue with display. The complete change is in fork out code in my github.