QtSvg Namespace
Der QtSvg-Namensraum enthält Typen, die von den svg-Klassen verwendet werden. Mehr...
Kopfzeile: | #include <QtSvg> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Svg) target_link_libraries(mytarget PRIVATE Qt6::Svg) |
qmake: | QT += svg |
Typen
(since 6.7) enum | Option { NoOption, Tiny12FeaturesOnly, AssumeTrustedSource, DisableSMILAnimations, DisableCSSAnimations, DisableAnimations } |
flags | Options |
Typ Dokumentation
[since 6.7]
enum QtSvg::Option
flags QtSvg::Optionen
Diese Aufzählung enthält Flags, die verwendet werden können, um verschiedene Funktionen des Parsens und Renderns von SVG-Dateien zu aktivieren oder zu deaktivieren. Mehrere Flags können in dem QFlags Typ QtSvg::Options kombiniert werden.
Konstante | Wert | Beschreibung |
---|---|---|
QtSvg::NoOption | 0x00 | Der Nullwert. Dies ist der Standardwert für QtSvg::Options. |
QtSvg::Tiny12FeaturesOnly | 0x01 | Analysiert ausschließlich Tags, die Teil des SVG 1.2 Tiny Static Feature Sets sind. |
QtSvg::AssumeTrustedSource (since Qt 6.8) | 0x02 | Bestimmte Prüfungen und Beschränkungen der Ressourcennutzung deaktivieren usw. |
QtSvg::DisableSMILAnimations (since Qt 6.9) | 0x10 | Deaktivieren Sie SMIL-Animationen. SMIL-Animationen sind Animationen, die mit Elementen wie <animateColor> definiert werden. |
QtSvg::DisableCSSAnimations (since Qt 6.9) | 0x20 | Deaktivieren Sie CSS-Animationen, die innerhalb eines <style>-Elements definiert sind. |
QtSvg::DisableAnimations (since Qt 6.9) | 0xf0 | Alle Animationen deaktivieren. |
Diese Aufzählung wurde in Qt 6.7 eingeführt.
Der Options-Typ ist ein Typedef für QFlags<Option>. Er speichert eine OR-Kombination von Optionswerten.
© 2025 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.