C
BinaryFiles.MCU.resourceCachePolicy
Defines the binary resource cache policy.
Description
This property can be used to choose cache policy, which enables faster access to the binary resources.
The following list describes the available options:
Constant | Description |
---|---|
"OnStartup" | The data is copied to RAM on startup. Although this enables faster access to data, it might use up limited RAM. |
"NoCaching" | The data is not copied to RAM. Accessing data from slow memory may reduce overall performance. |
Usage
Code example:
BinaryFiles { MCU.resourceCachePolicy: "NoCaching" }
Note: This property can also be applied to every resource in the QmlProject file if defined in MCU.Config as follows:
MCU.Config { resourceCachePolicy: "NoCaching" }
Warning: Resource cache policy in MCU.Config is also applied to every image resource.
Since
This property was introduced in Qt Quick Ultralite 2.9.
See also BinaryFiles.MCU.resourceRuntimeAllocationType, BinaryFiles.MCU.resourceStorageSection, and MCU.Config.maxResourceCacheSize.
Available under certain Qt licenses.
Find out more.