The QRhi is no need to limit the type to QOffscreenSurface, use the QSurface instead of QOffscreenSurface, to allowed use the custom offscreen QSurface types.