C
QUL_RESOURCE_STORAGE_SECTION
Warning: This CMake source property is deprecated since 2.4, consider using ImageFiles.MCU.resourceStorageSection instead.
Note: Board defaults can be set using QmlProject
in the BoardDefaults.qmlprojectconfig
files. See Defining default variables for the platform and QmlProject Manual.
Define the asset storage section.
Description
The user can define in which memory section the asset should be placed.
Note: the memory section has to appear in the linker script. See Linker script setup for more information.
If not set, the default value is QulResourceData
.
Source file properties must be set before adding files to the application using the qul_add_resource
function.
Example
# 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" )
Since
This property was introduced in Qt Quick Ultralite 2.0.
See also QUL_RESOURCE_CACHE_POLICY, QUL_RESOURCE_RUNTIME_ALLOCATION_TYPE, Qt Quick Ultralite image caching, QUL_RESOURCE_COMPRESSION, Linker script setup, and Default Resource Properties.
Available under certain Qt licenses.
Find out more.