En esta página

QtSvg Namespace

El espacio de nombres QtSvg contiene tipos utilizados por las clases svg. Más...

Cabecera: #include <QtSvg>
CMake: find_package(Qt6 REQUIRED COMPONENTS Svg)
target_link_libraries(mytarget PRIVATE Qt6::Svg)
qmake: QT += svg

Tipos

(since 6.7) enum Option { NoOption, Tiny12FeaturesOnly, AssumeTrustedSource, DisableSMILAnimations, DisableCSSAnimations, DisableAnimations }
flags Options

Descripción detallada

Documentación de tipos

[since 6.7] enum QtSvg::Option
flags QtSvg::Options

Este enum contiene opciones que se pueden utilizar para activar o desactivar diversas características del análisis sintáctico y la representación de archivos SVG. Se pueden combinar múltiples flags en el tipo QFlags QtSvg::Options.

ConstanteValorDescripción
QtSvg::NoOption0x00El valor nulo. Este es el valor predeterminado para QtSvg::Options.
QtSvg::Tiny12FeaturesOnly0x01Analizar estricta y exclusivamente sólo las etiquetas que forman parte del conjunto de características estáticas SVG 1.2 Tiny.
QtSvg::AssumeTrustedSource (since Qt 6.8)0x02Deshabilitar ciertas comprobaciones y restricciones en el uso de recursos, etc.
QtSvg::DisableSMILAnimations (since Qt 6.9)0x10Desactivar las animaciones SMIL. Las animaciones SMIL son animaciones definidas mediante elementos como <animateColor>.
QtSvg::DisableCSSAnimations (since Qt 6.9)0x20Desactivar animaciones CSS definidas dentro de un elemento <style>.
QtSvg::DisableAnimations (since Qt 6.9)0xf0Deshabilitar todas las animaciones.

Este enum se introdujo en Qt 6.7.

El tipo Options es un typedef para QFlags<Option>. Almacena una combinación OR de valores Option.

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.