Note: This CMake API is deprecated. Use the
BoardDefaults.qmlprojectconfig files instead. See QmlProject Manual.
Define the image cache policy.
The following is a list of possible values:
|The data is copied to RAM on startup. Although this enables faster access to data, it might use up your limited RAM.|
|The data is copied to the texture cache on demand. Image caching must be enabled.|
|The data is not copied to RAM. Drawing an image to the screen from storage may result in reduced performance.|
If image data is compressed (QUL_RESOURCE_COMPRESSION), the default value is
"OnDemand", otherwise it is
Note: Source file properties must be set before adding files to the application using the
# Setting an image to be cached on demand with a custom memory allocator set_source_files_properties( big/button.png PROPERTIES QUL_RESOURCE_CACHE_POLICY "OnDemand" QUL_RESOURCE_STORAGE_SECTION "CustomSegment" QUL_RESOURCE_RUNTIME_ALLOCATION_TYPE "128" )
This property was introduced in Qt Quick Ultralite 2.0.
See also QUL_RESOURCE_RUNTIME_ALLOCATION_TYPE, QUL_RESOURCE_STORAGE_SECTION, Qt Quick Ultralite image caching, QUL_RESOURCE_COMPRESSION, Default Resource Properties, and qul_set_maximum_resource_cache_size.
Available under certain Qt licenses.
Find out more.