New in version 5.6.
- class PySide2.QtQuick.QQuickAsyncImageProvider¶
- PySide2.QtQuick.QQuickAsyncImageProvider.requestImageResponse(id, requestedSize)¶
id – str
- Return type:
Implement this method to return the job that will provide the texture with
idis the requested image source, with the “image:” scheme and provider identifier removed. For example, if the image source was “image://myprovider/icons/home”, the given
idwould be “icons/home”.
requestedSizecorresponds to the Image::sourceSize requested by an Image item. If
requestedSizeis a valid size, the image returned should be of that size.
this method may be called by multiple threads, so ensure the implementation of this method is reentrant.
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.