fstl-app / fstl

A fast STL file viewer
463 stars 106 forks source link

moving to QOpenGLWidget #23

Closed jurneo closed 6 years ago

jurneo commented 6 years ago

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.