QQmlImageProviderBase¶
The
QQmlImageProviderBaseclass is used to register image providers in the QML engine. More…

Inherited by: QQuickAsyncImageProvider, QQuickImageProvider
Detailed Description¶
Image providers must be registered with the QML engine. The only information the QML engine knows about image providers is the type of image data they provide. To use an image provider to acquire image data, you must cast the
QQmlImageProviderBasepointer to aQQuickImageProviderpointer.See also
QQuickImageProviderQQuickTextureFactory
- class PySide2.QtQml.QQmlImageProviderBase¶
- PySide2.QtQml.QQmlImageProviderBase.ImageType¶
Defines the type of image supported by this image provider.
Constant
Description
QQmlImageProviderBase.Image
The Image Provider provides
QImageimages. TherequestImage()method will be called for all image requests.QQmlImageProviderBase.Pixmap
The Image Provider provides
QPixmapimages. TherequestPixmap()method will be called for all image requests.QQmlImageProviderBase.Texture
The Image Provider provides
QSGTextureProviderbased images. TherequestTexture()method will be called for all image requests.QQmlImageProviderBase.ImageResponse
The Image provider provides
QQuickTextureFactorybased images. Should only be used inQQuickAsyncImageProvideror its subclasses. TherequestImageResponse()method will be called for all image requests. Since Qt 5.6
- PySide2.QtQml.QQmlImageProviderBase.Flag¶
Defines specific requirements or features of this image provider.
Constant
Description
QQmlImageProviderBase.ForceAsynchronousImageLoading
Ensures that image requests to the provider are run in a separate thread, which allows the provider to spend as much time as needed on producing the image without blocking the main thread.
- PySide2.QtQml.QQmlImageProviderBase.flags()¶
- Return type:
Flags
Implement this to return the properties of this image provider.
© 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.