On this page

C

QUL_RESOURCE_ENABLE_SVG_SCALING

Enables QUL_RESOURCE_SVG_SCALE to take effect.

Description

QUL_RESOURCE_SVG_SCALE has no effect on an SVG image unless this property is set to ON for it. The property is OFF by default.

Set the property before the image is added to the target.

Example

qul_add_executable(my_app)

set_source_files_properties(icon.svg PROPERTIES QUL_RESOURCE_ENABLE_SVG_SCALING ON)

qul_add_qml_module(my_app
    URI MyApp
    QML_FILES main.qml
    RESOURCES
        icon.svg  # scaled by QUL_RESOURCE_SVG_SCALE
        logo.svg  # not scaled
)

Since

This property was introduced in Qt Quick Ultralite 3.0.

See also QUL_RESOURCE_SVG_SCALE and Default Resource Properties.

Available under certain Qt licenses.
Find out more.