• Qt SVG Widgets C++ 类

    这些类属于 Qt SVG module and provide SVG rendering features for applications that use widgets or graphics items. 更多...

    QGraphicsSvgItem

    用于渲染 SVG 文件内容的 QGraphicsItem

    QSvgWidget

    用于显示 SVG (可伸缩向量图形) 文件内容的 Widget

    详细描述

    构建采用 CMake

    使用 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)
    			

    采用 qmake 构建

    To configure for qmake, add svgwidgetsQt 变量:

    QT += svgwidgets
    			

    内容

    1. 名称空间

    2. 详细描述

    3. 构建采用 CMake

    4. 采用 qmake 构建