QQuickImageProviderOptions Class

The QQuickImageProviderOptions class provides options for QQuickImageProviderWithOptions image requests. \inmodule QtQuick \internal. More...

Header: #include <QQuickImageProviderOptions>

Public Types

enum AutoTransform { UsePluginDefaultTransform, ApplyTransform, DoNotApplyTransform }

Public Functions

AutoTransform autoTransform() const
bool preserveAspectRatioCrop() const
bool preserveAspectRatioFit() const
QColorSpace targetColorSpace() const

Detailed Description

See also QQuickImageProviderWithOptions.

Member Type Documentation

enum QQuickImageProviderOptions::AutoTransform

Whether the image provider should apply transformation metadata on read().

ConstantValueDescription
QQuickImageProviderOptions::UsePluginDefaultTransform-1Image provider should do its default behavior on whether applying transformation metadata on read or not
QQuickImageProviderOptions::ApplyTransform0Image provider should apply transformation metadata on read
QQuickImageProviderOptions::DoNotApplyTransform1Image provider should not apply transformation metadata on read

Member Function Documentation

AutoTransform QQuickImageProviderOptions::autoTransform() const

Returns whether the image provider should apply transformation metadata on read().

bool QQuickImageProviderOptions::preserveAspectRatioCrop() const

Returns whether the image request is for a PreserveAspectCrop Image. This allows the provider to better optimize the size of the returned image.

bool QQuickImageProviderOptions::preserveAspectRatioFit() const

Returns whether the image request is for a PreserveAspectFit Image. This allows the provider to better optimize the size of the returned image.

QColorSpace QQuickImageProviderOptions::targetColorSpace() const

Returns the color space the image provider should return the image in.