C

MCU.Config.safeTextCachePolicy

Defines the cache policy for the dynamic SafeText resources.

Description

This property controls whether dynamic SafeText resources are cached in memory. By default, caching is enabled to boost performance at the cost of higher RAM usage.

The following list describes the available options:

ConstantDescription
"OnStartup"The data is copied to RAM on startup. Although this enables faster access to data, it can consume a notable fraction of available RAM on systems with limited memory.
"NoCaching"The data is not copied to RAM. Accessing data from slow memory may reduce overall performance.

Usage

This property is accepted in any context where its parent node is accepted. It takes a string, and the default value is "OnStartup".

The available options are:

  • "OnStartup"
  • "NoCaching"

Code example:

MCU.Config {
    safeTextCachePolicy: "NoCaching"
}

Since

This property was introduced in Qt Quick Ultralite 2.12.0.

See also MCU.Config.safeTextRuntimeAllocationType and MCU.Config.safeTextStorageSection.

Available under certain Qt licenses.
Find out more.