QtSvg Namespace
El espacio de nombres QtSvg contiene los tipos que utilizan las clases svg. Más información...
| Encabezado: | #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 |
Documentación de tipos
[since 6.7] enum QtSvg::Option
flags QtSvg::Options
Esta enumeración contiene indicadores que pueden utilizarse para activar o desactivar diversas funciones relacionadas con el análisis y la representación de archivos SVG. Se pueden combinar varios indicadores en el tipo « QFlags » QtSvg::Options.
| Constante | Valor | Descripción |
|---|---|---|
QtSvg::NoOption | 0x00 | El valor nulo. Es el valor predeterminado de QtSvg::Options. |
QtSvg::Tiny12FeaturesOnly | 0x01 | Analiza de forma estricta y exclusiva solo las etiquetas que forman parte del conjunto de características estáticas «Tiny» de SVG 1.2. |
QtSvg::AssumeTrustedSource (since Qt 6.8) | 0x02 | Desactiva ciertas comprobaciones y restricciones sobre el uso de recursos, etc. |
QtSvg::DisableSMILAnimations (since Qt 6.9) | 0x10 | Desactiva las animaciones SMIL. Las animaciones SMIL son animaciones definidas mediante elementos como <animateColor>. |
QtSvg::DisableCSSAnimations (since Qt 6.9) | 0x20 | Desactiva las animaciones CSS definidas dentro de un elemento <style>. |
QtSvg::DisableAnimations (since Qt 6.9) | 0xf0 | Desactiva todas las animaciones. |
Esta enumeración se introdujo en Qt 6.7.
El tipo «Options» es un typedef para QFlags<Option>. Almacena una combinación OR de valores de «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.