QtSvg Namespace

The QtSvg namespace contains types used by the svg classes. 更多...

頭: #include <QtSvg>
CMake: find_package(Qt6 REQUIRED COMPONENTS Svg)
target_link_libraries(mytarget PRIVATE Qt6::Svg)
qmake: QT += svg

類型

(從 6.7 起) enum Option { NoOption, Tiny12FeaturesOnly, AssumeTrustedSource }
flags 選項

詳細描述

類型文檔編製

[since 6.7] enum QtSvg:: Option
flags QtSvg:: 選項

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.

常量 描述
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.

該枚舉在 Qt 6.7 引入。

Options 類型是 typedef 對於 QFlags <Option>。它存儲 Option 值的 OR (或) 組閤。