QtSvg Namespace
The QtSvg namespace contains types used by the svg classes. More...
Header: | #include <QtSvg> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Svg) target_link_libraries(mytarget PRIVATE Qt6::Svg) |
qmake: | QT += svg |
Types
(since 6.7) enum | Option { NoOption, Tiny12FeaturesOnly, AssumeTrustedSource, DisableSMILAnimations, DisableCSSAnimations, DisableAnimations } |
flags | Options |
Type Documentation
[since 6.7]
enum QtSvg::Option
flags QtSvg::Options
This enum holds flags that can be used to enable or disable various features of the parsing and rendering of SVG files. Multiple flags can be combined into the QFlags type QtSvg::Options.
Constant | Value | Description |
---|---|---|
QtSvg::NoOption | 0x00 | The null value. This is the default for QtSvg::Options. |
QtSvg::Tiny12FeaturesOnly | 0x01 | Strictly and exclusively parse only tags that are part of the SVG 1.2 Tiny Static Feature set. |
QtSvg::AssumeTrustedSource (since Qt 6.8) | 0x02 | Disable certain checks and restrictions on resource usage etc. |
QtSvg::DisableSMILAnimations (since Qt 6.9) | 0x04 | Disable SMIL animations. SMIL animations are animations defined using elements like <animateColor>. |
QtSvg::DisableCSSAnimations (since Qt 6.9) | 0x08 | Disable CSS animations defined inside a <style> element. |
QtSvg::DisableAnimations (since Qt 6.9) | DisableSMILAnimations | DisableCSSAnimations | Disable both SMIL and CSS animations. |
This enum was introduced in Qt 6.7.
The Options type is a typedef for QFlags<Option>. It stores an OR combination of Option values.
© 2024 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.