Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

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

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.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded