Auf dieser Seite

QtSvg Namespace

Der Namespace „QtSvg“ enthält Typen, die von den SVG-Klassen verwendet werden. Mehr dazu...

Header: #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

Ausführliche Beschreibung

Typdokumentation

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

Diese Enumeration enthält Flags, mit denen verschiedene Funktionen beim Parsen und Rendern von SVG-Dateien aktiviert oder deaktiviert werden können. Mehrere Flags können zum Typ „ QFlags “ QtSvg::Options zusammengefasst werden.

KonstanteWertBeschreibung
QtSvg::NoOption0x00Der Nullwert. Dies ist der Standardwert für QtSvg::Options.
QtSvg::Tiny12FeaturesOnly0x01Parsen Sie streng und ausschließlich Tags, die Teil des SVG 1.2 Tiny Static Feature-Sets sind.
QtSvg::AssumeTrustedSource (since Qt 6.8)0x02Bestimmte Prüfungen und Einschränkungen hinsichtlich der Ressourcennutzung usw. werden deaktiviert.
QtSvg::DisableSMILAnimations (since Qt 6.9)0x10Deaktiviert SMIL-Animationen. SMIL-Animationen sind Animationen, die mithilfe von Elementen wie <animateColor> definiert werden.
QtSvg::DisableCSSAnimations (since Qt 6.9)0x20Deaktiviert CSS-Animationen, die innerhalb eines <style>-Elements definiert sind.
QtSvg::DisableAnimations (since Qt 6.9)0xf0Deaktiviert alle Animationen.

Diese Enumeration wurde in Qt 6.7 eingeführt.

Der Typ „Options“ ist ein `typedef` für ` QFlags<Option>`. Er speichert eine ODER-Kombination von Optionswerten.

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