PySide6.QtQml.QQmlImageProviderBase¶
- class QQmlImageProviderBase¶
- The - QQmlImageProviderBaseclass is used to register image providers in the QML engine.- Details- 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 a QQuickImageProvider pointer.- See also - QQuickImageProviderQQuickTextureFactory- Inherited by: - QQuickImageProvider,- QQuickAsyncImageProvider- Synopsis¶- Virtual methods¶- def - flags()
- def - imageType()
 - 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 - class ImageType¶
- Defines the type of image supported by this image provider. - Constant - Description - QQmlImageProviderBase.ImageType.Image - The Image Provider provides QImage images. The QQuickImageProvider::requestImage() method will be called for all image requests. - QQmlImageProviderBase.ImageType.Pixmap - The Image Provider provides QPixmap images. The QQuickImageProvider::requestPixmap() method will be called for all image requests. - QQmlImageProviderBase.ImageType.Texture - The Image Provider provides QSGTextureProvider based images. The QQuickImageProvider::requestTexture() method will be called for all image requests. - QQmlImageProviderBase.ImageType.ImageResponse - The Image provider provides QQuickTextureFactory based images. Should only be used in QQuickAsyncImageProvider or its subclasses. The QQuickAsyncImageProvider::requestImageResponse() method will be called for all image requests. Since Qt 5.6 
 - class Flag¶
- (inherits - enum.Flag) Defines specific requirements or features of this image provider.- Constant - Description - QQmlImageProviderBase.Flag.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. 
 - Implement this to return the properties of this image provider. - Implement this method to return the image type supported by this image provider.