C

ImageFiles.MCU.resourceCachePolicy

Defines the image cache policy.

Description

Use this property to choose an image cache policy, which enables faster access to the image assets. The default cache policy varies depending on whether resourceCompression is ON or OFF. It is set to "OnDemand" if the resource compression is ON, otherwise to "OnStartup".

The following is a list of possible values:

ConstantDescription
"OnStartup"The data is copied to RAM on startup. Although this enables faster access to data, it might use up your limited RAM.
"OnDemand"The data is copied to the texture cache on demand. This is the default policy if resourceCompression is ON.
"NoCaching"The data is not copied to RAM. Drawing an image to the screen from storage may result in reduced performance.

Accepted values: "OnStartup" The data is copied to RAM on startup. Although this enables faster access to data, it will use up your limited RAM. "OnDemand" The data is copied to the texture cache on demand. Image caching must be enabled. "NoCaching" The data is not copied to RAM. Drawing an image to the screen from storage may result in reduced performance.

If MCU.Config.resourceCompression is enabled, the default value for resourceCachePolicy is "OnDemand". If resourceCompression is disabled.

Usage

ImageFiles {
    MCU.resourceCachePolicy: "NoCaching"
}

Since

This property was introduced in QmlProject API 1.3 .

See also QUL_RESOURCE_CACHE_POLICY and MCU.Config.resourceCachePolicy.

Available under certain Qt licenses.
Find out more.