diff --git a/src/gui/rhi/qrhi.cpp b/src/gui/rhi/qrhi.cpp index a39709c7263..f10fc1b5bf8 100644 --- a/src/gui/rhi/qrhi.cpp +++ b/src/gui/rhi/qrhi.cpp @@ -8460,7 +8460,8 @@ void QRhiImplementation::prepareForCreate(QRhi *rhi, QRhi::Implementation impl, /*! \return a new QRhi instance with a backend for the graphics API specified - by \a impl with the specified \a flags. + by \a impl with the specified \a flags. \return \c nullptr if the + function fails. \a params must point to an instance of one of the backend-specific subclasses of QRhiInitParams, such as, QRhiVulkanInitParams,