QQuickAsyncImageProvider露

The QQuickAsyncImageProvider class provides an interface for for asynchronous control of QML image requests. More鈥�

Inheritance diagram of PySide2.QtQuick.QQuickAsyncImageProvider

New in version 5.6.

Detailed Description露

See the Image Response Provider Example for a complete implementation.

class PySide2.QtQuick.QQuickAsyncImageProvider露
PySide2.QtQuick.QQuickAsyncImageProvider.requestImageResponse(id, requestedSize)露
Parameters:
Return type:

PySide2.QtQuick.QQuickImageResponse

Implement this method to return the job that will provide the texture with id .

The id is the requested image source, with the 鈥渋mage:鈥� scheme and provider identifier removed. For example, if the image source was 鈥渋mage://myprovider/icons/home鈥�, the given id would be 鈥渋cons/home鈥�.

The requestedSize corresponds to the Image::sourceSize requested by an Image item. If requestedSize 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.