summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/quick/util/qquickimageprovider.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/quick/util/qquickimageprovider.cpp b/src/quick/util/qquickimageprovider.cpp
index 89615a207..5d492a4e7 100644
--- a/src/quick/util/qquickimageprovider.cpp
+++ b/src/quick/util/qquickimageprovider.cpp
@@ -194,8 +194,11 @@ void QQuickImageResponse::cancel()
\fn QQuickTextureFactory *QQuickImageResponse::textureFactory() const
Returns the texture factory for the job. You can use QQuickTextureFactory::textureFactoryForImage
- if your provider works with QImage. This method is only called when the error string is not empty and the
- engine takes ownership of the returned QQuickTextureFactory.
+ if your provider works with QImage. The engine takes ownership of the returned QQuickTextureFactory.
+
+ \note This method will be called only when needed. For example, it may not be called if there is an
+ error or the job is cancelled. Therefore, allocate the QQuickTextureFactory instance only in this
+ method or otherwise ensure its deletion.
*/