Switch from QGLWidget to QWindow/QSurface/QOpenGLContext.