- Qt 6.10
- Qt SVG
- QtSvg Namespace
- Qt 6.10.2 Reference Documentation

# 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

## Detailed Description

## 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)` | `0x10` | Disable SMIL animations. SMIL animations are animations defined using elements like <animateColor>.
`QtSvg::DisableCSSAnimations (since Qt 6.9)` | `0x20` | Disable CSS animations defined inside a <style> element.
`QtSvg::DisableAnimations (since Qt 6.9)` | `0xf0` | Disable all 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.