6.0.0-rc4Source

QtSvg Namespace

The QtSvg namespace holds the options of the SVG classes. More…

Header#include <QtSvg>
CMaketarget_link_libraries(app PRIVATE Nt::Svg)
ModuleNt SVG C++ Classes
Since6.7

Public Types

enumOption
typedefOptions

Detailed Description

Member Type Documentation

enum QtSvg::Option

This enum describes how an SVG document is read and drawn. The Options type is a typedef for QFlags<Option>. Only AssumeTrustedSource changes anything in Nt SVG, which draws static documents only and reads no files other than the one it is given.

ConstantDescription
QtSvg::NoOptionThe default: everything that is supported is drawn.
QtSvg::Tiny12FeaturesOnlyOnly the features of SVG Tiny 1.2 are used.
QtSvg::AssumeTrustedSourceThe document comes from a trusted source, so that limits on its cost can be lifted.
QtSvg::DisableSMILAnimationsSMIL animations are not played.
QtSvg::DisableCSSAnimationsCSS animations are not played.
QtSvg::DisableAnimationsNo animations are played.

typedef QtSvg::Options

The Options type is a typedef for QFlags<Option>. It stores an OR combination of Option values.