diff options
author | Bea Lam <bea.lam@nokia.com> | 2010-07-08 03:19:22 (GMT) |
---|---|---|
committer | Bea Lam <bea.lam@nokia.com> | 2010-07-08 04:07:39 (GMT) |
commit | a258456bcb35ec4211751a702ea94a1881d82a07 (patch) | |
tree | ca7dc7ded5b23aac34247694a06a9bf910e2384e /doc/src | |
parent | 3d8db76427efd74e1668b2743381d724453da5d6 (diff) | |
download | Qt-a258456bcb35ec4211751a702ea94a1881d82a07.zip Qt-a258456bcb35ec4211751a702ea94a1881d82a07.tar.gz Qt-a258456bcb35ec4211751a702ea94a1881d82a07.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
Diffstat (limited to 'doc/src')
-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 dec5441..4ad11d9 100644 --- a/doc/src/examples/qml-examples.qdoc +++ b/doc/src/examples/qml-examples.qdoc @@ -214,8 +214,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 |