このページでは

Qt SVG Widgets C++ Classes

これらのクラスは、 Qt SVG モジュールの一部であり、ウィジェットやグラフィックアイテムを使用するアプリケーション向けにSVGレンダリング機能を提供します。詳細...

クラス

QGraphicsSvgItem

SVGファイルの内容をレンダリングするために使用できるQGraphicsItem

QSvgWidget

Scalable Vector Graphics (SVG) ファイルの内容を表示するために使用されるウィジェット

詳細な説明

CMake を使用したビルド

find_package() およびtarget_link_libraries() コマンドを使用して、コンポーネントを検索し、リンクします:

find_package(Qt6 REQUIRED COMPONENTS SvgWidgets)
target_link_libraries(mytarget PRIVATE Qt6::SvgWidgets)

qmake によるビルド

qmake 用に設定するには、Qt 変数にsvgwidgets を追加します:

QT += svgwidgets

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