Remove QGLWidget and replace it with QOpenGLWidget

The deprecated QGLWidget from the deprecated Qt OpenGL module should be removed. It causes various issues with dock widgets disappearing or rendering wrong.

Instead, the more modern QOpenGLWidget should be used, as it adresses these issues.