summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBea Lam <bea.lam@nokia.com>2010-12-02 04:20:50 (GMT)
committerBea Lam <bea.lam@nokia.com>2010-12-03 00:56:36 (GMT)
commit89f4a877c401e1ab18d3ed520d17440b3e9078e7 (patch)
tree35e9d7a7f5abb60b8e69502368c96d9ea6211251
parente0ecd0d3d6f0cf32061ccf3631a4038c255b41fe (diff)
downloadQt-89f4a877c401e1ab18d3ed520d17440b3e9078e7.zip
Qt-89f4a877c401e1ab18d3ed520d17440b3e9078e7.tar.gz
Qt-89f4a877c401e1ab18d3ed520d17440b3e9078e7.tar.bz2
Mention that image providers should be added before loading QML files
-rw-r--r--src/declarative/qml/qdeclarativeengine.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/declarative/qml/qdeclarativeengine.cpp b/src/declarative/qml/qdeclarativeengine.cpp
index 7ac3a68..a8404f0 100644
--- a/src/declarative/qml/qdeclarativeengine.cpp
+++ b/src/declarative/qml/qdeclarativeengine.cpp
@@ -678,6 +678,9 @@ QNetworkAccessManager *QDeclarativeEngine::networkAccessManager() const
requests. See the QDeclarativeImageProvider documentation for details on
implementing and using image providers.
+ All required image providers should be added to the engine before any
+ QML sources files are loaded.
+
Note that images loaded from a QDeclarativeImageProvider are cached
by QPixmapCache, similar to any image loaded by QML.