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, DisableSMILAnimations, DisableCSSAnimations, DisableAnimations } |
| flags | 選項 |
[since 6.7]
enum 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. |
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. |
該枚舉在 Qt 6.7 引入。
Options 類型是 typedef 對於 QFlags <Option>。它存儲 Option 值的 OR (或) 組閤。