- Qt 6.10
- Qt SVG
- Qt SVG Widgets C++ Classes
- Qt 6.10.2 Reference Documentation

Upgrading from Qt 5

# 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