QtSvg Namespace
QtSvg 名前空間には、svg クラスで使用される型が含まれています。詳細...
| ヘッダー: | #include <QtSvg> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Svg) target_link_libraries(mytarget PRIVATE Qt6::Svg) |
| qmake: | QT += svg |
種類
(since 6.7) enum | Option { NoOption, Tiny12FeaturesOnly, AssumeTrustedSource, DisableSMILAnimations, DisableCSSAnimations, DisableAnimations } |
| flags | Options |
型のドキュメント
[since 6.7] enum QtSvg::Option
flags QtSvg::Options
この列挙型は、SVGファイルの解析およびレンダリングに関するさまざまな機能を有効または無効にするために使用できるフラグを保持しています。複数のフラグを組み合わせて、QFlags 型であるQtSvg::Optionsに設定することができます。
| 定数 | 値 | 説明 |
|---|---|---|
QtSvg::NoOption | 0x00 | null 値。これは QtSvg::Options のデフォルト値です。 |
QtSvg::Tiny12FeaturesOnly | 0x01 | SVG 1.2 TinyStatic Feature セットに含まれるタグのみを、厳密かつ排他的に解析します。 |
QtSvg::AssumeTrustedSource (since Qt 6.8) | 0x02 | リソースの使用などに関する特定のチェックや制限を無効にします。 |
QtSvg::DisableSMILAnimations (since Qt 6.9) | 0x10 | SMIL アニメーションを無効にします。SMIL アニメーションとは、<animateColor> などの要素を使用して定義されたアニメーションのことです。 |
QtSvg::DisableCSSAnimations (since Qt 6.9) | 0x20 | <style> 要素内で定義された CSS アニメーションを無効にします。 |
QtSvg::DisableAnimations (since Qt 6.9) | 0xf0 | すべてのアニメーションを無効にします。 |
この列挙型は Qt 6.7 で導入されました。
Options 型は、QFlags<Option> の typedef です。Option 値の OR 組み合わせを格納します。
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.