QtSvg Namespace
O namespace QtSvg contém tipos utilizados pelas classes SVG. Saiba mais...
| Cabeçalho: | #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 |
Documentação dos tipos
[since 6.7] enum QtSvg::Option
flags QtSvg::Options
Essa enumeração contém sinalizadores que podem ser usados para ativar ou desativar diversos recursos de análise e renderização de arquivos SVG. Vários sinalizadores podem ser combinados no tipo ` QFlags ` `QtSvg::Options`.
| Constante | Valor | Descrição |
|---|---|---|
QtSvg::NoOption | 0x00 | O valor nulo. Esse é o padrão para QtSvg::Options. |
QtSvg::Tiny12FeaturesOnly | 0x01 | Analisa estritamente e exclusivamente apenas as tags que fazem parte do conjunto de recursos SVG 1.2 Tiny Static. |
QtSvg::AssumeTrustedSource (since Qt 6.8) | 0x02 | Desativa certas verificações e restrições quanto ao uso de recursos etc. |
QtSvg::DisableSMILAnimations (since Qt 6.9) | 0x10 | Desativa animações SMIL. Animações SMIL são animações definidas usando elementos como <animateColor>. |
QtSvg::DisableCSSAnimations (since Qt 6.9) | 0x20 | Desativa as animações CSS definidas dentro de um elemento <style>. |
QtSvg::DisableAnimations (since Qt 6.9) | 0xf0 | Desativa todas as animações. |
Essa enumeração foi introduzida no Qt 6.7.
O tipo Options é um typedef para QFlags<Option>. Ele armazena uma combinação 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.