Qt SVG Widgets C++ Classes

These classes are part of the Qt SVG module and provide SVG rendering features for applications that use widgets or graphics items. More...

Classes

QGraphicsSvgItem

QGraphicsItem that can be used to render the contents of SVG files

QSvgWidget

Widget that is used to display the contents of Scalable Vector Graphics (SVG) files

Detailed Description

Building with CMake

Use the find_package() and target_link_libraries() commands to locate and link the component:

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

Building with qmake

To configure for qmake, add svgwidgets to the Qt variable:

QT += svgwidgets

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