QQmlImageProviderBaseclass is used to register image providers in the QML engine. 更多 …
继承者: QQuickAsyncImageProvider , QQuickImageProvider
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 aQQuickImageProvider指针。
PySide2.QtQml.QQmlImageProviderBase.
ImageType
¶
Defines the type of image supported by this image provider.
|
常量 |
描述 |
|---|---|
|
QQmlImageProviderBase.Image |
The Image Provider provides
|
|
QQmlImageProviderBase.Pixmap |
The Image Provider provides
|
|
QQmlImageProviderBase.Texture |
The Image Provider provides
|
|
QQmlImageProviderBase.ImageResponse |
The Image provider provides
|
PySide2.QtQml.QQmlImageProviderBase.
Flag
¶
Defines specific requirements or features of this image provider.
|
常量 |
描述 |
|---|---|
|
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
(
)
¶
标志
Implement this to return the properties of this image provider.