확장 기능
Qt SVG 모듈은 SVG 1.2 Tiny의 정적 기능을 지원합니다.
이 모듈은 또한 유용할 수 있는 몇 가지 추가 기능도 지원합니다. QSvgRenderer 은 기본적으로 모든 기능(추가 기능 세트 포함)을 파싱합니다. QSvgRenderer::setOptions ()에 QtSvg::Tiny12FeaturesOnly 플래그를 전달하여 이러한 추가 기능을 무시하도록 렌더링에 지시할 수 있습니다.
확장 기능
Qt 6.7부터 다음과 같은 확장 요소와 관련 어트리뷰트를 지원합니다:
- 마스크 SVG 1.1
- 심볼 SVG 1.1 및 SVG 2
- 마커 SVG 1.1
- 패턴 SVG 1.1
- 필터 SVG 1.1
- feColorMatrix SVG 1.1
- feComposite SVG 1.1
- feFlood SVG 1.1
- feGaussianBlur SVG 1.1
- feOffset SVG 1.1
- feMerge SVG 1.1
마스킹
마스킹은 <mask>
요소와 마스크 속성의 형태로 지원됩니다.
참고: <clipPath>는 지원되지 않습니다.
<마스크
<mask>
요소의 다음 속성이 지원됩니다:
x
y
width
height
maskUnits
maskContentUnits
mask
속성은 모든 그래픽 및 구조적 SVG 요소에 지원됩니다.
기호, 마커 및 패턴
<심볼>
<symbol>
요소의 다음 속성이 지원됩니다:
x
(SVG 2부터)y
(SVG 2에서)width
(SVG 2에서)height
(SVG 2에서)preserveAspectRatio
viewBox
<marker>
<marker>
요소의 다음 속성이 지원됩니다:
markerUnits
refX
refY
markerWidth
markerHeight
orient
preserveAspectRatio
viewBox
속성
marker-start
marker-mid
marker-end
는 <path>
, <line>
, <polyline>
및 <polygon>
에 대해 지원됩니다.
<패턴>
다음 속성이 지원됩니다:
x
y
width
height
patternUnits
patternContentUnits
patternTransform
viewBox
다음 속성은 지원되지 않습니다:
preserveAspectRatio
xlink:href
필터
SVG 문서의 필터는 요소, 요소의 일부 또는 요소 아래의 배경에 그래픽 효과를 적용합니다. Qt는 전체 요소에 적용되는 필터 효과를 지원합니다. Qt는 요소의 채우기나 획(FillPaint
및 StrokePaint
) 또는 배경(BackgroundImage
및 BackgroundAlpha
)에만 필터를 적용하는 것은 지원하지 않습니다.
<필터>
<filter>
요소의 다음 속성이 지원됩니다:
x
y
width
height
filterUnits
primitiveUnits
<filter>
요소의 다음 속성은 지원되지 않습니다:
filterRes
xlink:href
filter
속성은 모든 그래픽 및 구조적 SVG 요소에 지원됩니다.
필터 기본 요소
필터 요소에는 다양한 필터 프리미티브가 포함되어 있습니다. Qt는 가장 중요한 필터 프리미티브를 지원합니다 (아래 참조).
모든 필터 프리미티브는 공통된 속성 집합을 공유합니다. 다음은 지원됩니다:
x
y
width
height
in
(지원되는 것은SourceGraphic
,SourceAlpha
, 그리고 필터에 대한 모든 참조입니다).result
다음 속성은 지원되지 않습니다:
in
(지원되지 않는 속성:BackgroundImage
,BackgroundAlpha
,FillPaint
, 및StrokePaint
)
<feColorMatrix>
다음 어트리뷰트가 지원됩니다:
type
values
<feGaussianBlur>
다음 속성이 지원됩니다:
stdDeviation
다음 속성은 지원되지 않습니다:
edgeMode
(구현은none
)와 일치합니다.
<feOffset>
다음 어트리뷰트가 지원됩니다:
dx
dy
<feMerge> 및 <feMergeNode>
추가 어트리뷰트는 없습니다.
<feComposite>
다음 어트리뷰트가 지원됩니다:
operator
k1
k2
k3
k4
<feFlood>
다음 속성이 지원됩니다:
flodd-color
flood-opacity
© 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.