In questa pagina

QtSvg Namespace

Lo spazio dei nomi QtSvg contiene i tipi utilizzati dalle classi SVG. Per saperne di più...

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

Tipi

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

Descrizione dettagliata

Documentazione sui tipi

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

Questa enumerazione contiene flag che possono essere utilizzati per abilitare o disabilitare varie funzionalità relative all'analisi e alla visualizzazione dei file SVG. È possibile combinare più flag nel tipo QtSvg:: QFlags.

CostanteValoreDescrizione
QtSvg::NoOption0x00Il valore nullo. È l'impostazione predefinita per QtSvg::Options.
QtSvg::Tiny12FeaturesOnly0x01Analizza rigorosamente ed esclusivamente solo i tag che fanno parte del set di funzionalità statiche " Tiny" di SVG 1.2.
QtSvg::AssumeTrustedSource (since Qt 6.8)0x02Disabilita determinati controlli e restrizioni sull'utilizzo delle risorse, ecc.
QtSvg::DisableSMILAnimations (since Qt 6.9)0x10Disabilita le animazioni SMIL. Le animazioni SMIL sono animazioni definite utilizzando elementi come <animateColor>.
QtSvg::DisableCSSAnimations (since Qt 6.9)0x20Disabilita le animazioni CSS definite all'interno di un elemento <style>.
QtSvg::DisableAnimations (since Qt 6.9)0xf0Disabilita tutte le animazioni.

Questa enumerazione è stata introdotta in Qt 6.7.

Il tipo Options è un typedef per QFlags<Option>. Memorizza una combinazione OR di valori 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.