QQmlImageProviderBase Class
The QQmlImageProviderBase class is used to register image providers in the QML engine. More...
Header: | #include <QQmlImageProviderBase> |
qmake: | QT += qml |
Inherited By: |
Public Types
Public Functions
Detailed Description
The QQmlImageProviderBase class is used to register image providers in the QML engine.
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 QQmlImageProviderBase pointer to a QQuickImageProvider pointer.
See also QQuickImageProvider and QQuickTextureFactory.
Member Type Documentation
enum QQmlImageProviderBase::Flag
flags QQmlImageProviderBase::Flags
Defines specific requirements or features of this image provider.
Constant | Value | Description |
---|---|---|
QQmlImageProviderBase::ForceAsynchronousImageLoading | 0x01 | 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. |
The Flags type is a typedef for QFlags<Flag>. It stores an OR combination of Flag values.
enum QQmlImageProviderBase::ImageType
Defines the type of image supported by this image provider.
Constant | Value | Description |
---|---|---|
QQmlImageProviderBase::Image | 0 | The Image Provider provides QImage images. The QQuickImageProvider::requestImage() method will be called for all image requests. |
QQmlImageProviderBase::Pixmap | 1 | The Image Provider provides QPixmap images. The QQuickImageProvider::requestPixmap() method will be called for all image requests. |
QQmlImageProviderBase::Texture | 2 | The Image Provider provides QSGTextureProvider based images. The QQuickImageProvider::requestTexture() method will be called for all image requests. |
© 2015 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.