Sur cette page

Qt SVG Widgets C++ Classes

Ces classes font partie du Qt SVG module et fournissent des fonctionnalités de rendu SVG pour les applications qui utilisent des widgets ou des éléments graphiques. En savoir plus…

Classes

QGraphicsSvgItem

QGraphicsItem, qui permet de rendre le contenu des fichiers SVG

QSvgWidget

Widget utilisé pour afficher le contenu des fichiers Scalable Vector Graphics (SVG)

Description détaillée

Compilation avec CMake

Utilisez les commandes « find_package() » et « target_link_libraries() » pour localiser et lier le composant :

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

Compilation avec qmake

Pour configurer qmake, ajoutez svgwidgets à la variable Qt:

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.