Nesta página

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

Descrição detalhada

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`.

ConstanteValorDescrição
QtSvg::NoOption0x00O valor nulo. Esse é o padrão para QtSvg::Options.
QtSvg::Tiny12FeaturesOnly0x01Analisa estritamente e exclusivamente apenas as tags que fazem parte do conjunto de recursos SVG 1.2 Tiny Static.
QtSvg::AssumeTrustedSource (since Qt 6.8)0x02Desativa certas verificações e restrições quanto ao uso de recursos etc.
QtSvg::DisableSMILAnimations (since Qt 6.9)0x10Desativa animações SMIL. Animações SMIL são animações definidas usando elementos como <animateColor>.
QtSvg::DisableCSSAnimations (since Qt 6.9)0x20Desativa as animações CSS definidas dentro de um elemento <style>.
QtSvg::DisableAnimations (since Qt 6.9)0xf0Desativa 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.