replace QWindow with QOpenGLWidget