- class QQuickAsyncImageProvider¶
The
QQuickAsyncImageProvider
class provides an interface for asynchronous control of QML image requests. More…Synopsis¶
Methods¶
def
__init__()
Virtual methods¶
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
Detailed Description¶
See the Image Response Provider Example for a complete implementation.
See also
- __init__()¶
- abstract requestImageResponse(id, requestedSize)¶
- Parameters:
id – str
requestedSize –
QSize
- Return type:
Implement this method to return the job that will provide the texture with
id
.The
id
is the requested image source, with the “image:” scheme and provider identifier removed. For example, if the image source was “image://myprovider/icons/home”, the givenid
would be “icons/home”.The
requestedSize
corresponds to the Image::sourceSize requested by an Image item. IfrequestedSize
is a valid size, the image returned should be of that size.Note
this method may be called by multiple threads, so ensure the implementation of this method is reentrant.