[Development] About QDeclarativeImageProvider.

Mark markg85 at gmail.com
Wed Jan 23 13:31:58 CET 2013


On Wed, Jan 23, 2013 at 1:18 AM,  <evazquez at grm.uci.cu> wrote:
>
> //requestImage
>
> How I can call this method using threads.
>
> _______________________________________________
> Development mailing list
> Development at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/development

First, you should have posted this to the Qt interest list. This list
is for actual Qt development (upstream) not user side Qt development.

To answer your question, you don't. Not there at least.
You make an image provider using that class which you register in your
QML runtime. For more information, read
http://qt-project.org/doc/qt-4.8/qdeclarativeimageprovider.html
To make it async (aka non blocking in this case) call the QML Element
Image like so:

Image {
  asynchronous: true
}

link: http://qt-project.org/doc/qt-4.8/qml-image.html#asynchronous-prop

Cheers,
Mark



More information about the Development mailing list