On this page

C

QUL_QSR_TEXT_CACHE_POLICY

Note: Board defaults can be set using QmlProject in the BoardDefaults.qmlprojectconfig files. See Defining default variables for the platform and QmlProject Manual.

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.

If not set on the application target, the value is looked up on the Qul::Platform target instead.

Example

set_target_properties(<Executable Target> PROPERTIES QUL_QSR_TEXT_CACHE_POLICY "NoCaching")

Since

This property was introduced in Qt Quick Ultralite 3.0.

See also QUL_QSR_TEXT_RUNTIME_ALLOCATION_TYPE and QUL_QSR_TEXT_STORAGE_SECTION.

Available under certain Qt licenses.
Find out more.