diff options
author | Bea Lam <bea.lam@nokia.com> | 2010-07-08 03:19:22 (GMT) |
---|---|---|
committer | Jason McDonald <jason.mcdonald@nokia.com> | 2010-07-13 04:39:09 (GMT) |
commit | 7c1ff382b0927d8b003468c16e31333816c3ab6b (patch) | |
tree | bbab99dca0c96625f7a4194f2ffa03d492572dbf /doc | |
parent | ca259d99473757190152e81e899aa200355235a5 (diff) | |
download | Qt-7c1ff382b0927d8b003468c16e31333816c3ab6b.zip Qt-7c1ff382b0927d8b003468c16e31333816c3ab6b.tar.gz Qt-7c1ff382b0927d8b003468c16e31333816c3ab6b.tar.bz2 |
Extend QDeclarativeImageProvider to support QPixmap loading and
synchronous loading of QImages. (QPixmaps can only be created in the
main thread so they will always be loaded synchronously).
This changes request() to requestImage() and adds requestPixmap()
for pixmap support.
Task-number: QTBUG-11989
(cherry picked from commit a258456bcb35ec4211751a702ea94a1881d82a07)
Diffstat (limited to 'doc')
-rw-r--r-- | doc/src/declarative/pics/imageprovider.png | bin | 0 -> 420 bytes | |||
-rw-r--r-- | doc/src/examples/qml-examples.qdoc | 6 | ||||
-rw-r--r-- | doc/src/images/qml-imageprovider-example.png | bin | 0 -> 2259 bytes |
3 files changed, 4 insertions, 2 deletions
diff --git a/doc/src/declarative/pics/imageprovider.png b/doc/src/declarative/pics/imageprovider.png Binary files differnew file mode 100644 index 0000000..422103c --- /dev/null +++ b/doc/src/declarative/pics/imageprovider.png diff --git a/doc/src/examples/qml-examples.qdoc b/doc/src/examples/qml-examples.qdoc index c8a7403..8896366 100644 --- a/doc/src/examples/qml-examples.qdoc +++ b/doc/src/examples/qml-examples.qdoc @@ -211,8 +211,10 @@ \title C++ Extensions: Image Provider \example declarative/cppextensions/imageprovider - This examples shows how to use QDeclarativeImageProvider to serve images asynchronously - into a QML item. + This examples shows how to use QDeclarativeImageProvider to serve images + to QML image elements. + + \image qml-imageprovider-example.png */ /*! diff --git a/doc/src/images/qml-imageprovider-example.png b/doc/src/images/qml-imageprovider-example.png Binary files differnew file mode 100644 index 0000000..e82548a --- /dev/null +++ b/doc/src/images/qml-imageprovider-example.png |