이 페이지에서

확장 기능

Qt SVG 모듈은 SVG 1.2 Tiny의 정적 기능을 지원합니다.

또한 이 모듈은 유용할 수 있는 몇 가지 추가 기능도 지원합니다. QSvgRenderer 는 기본적으로 모든 기능(추가 기능 세트 포함)을 파싱합니다. QSvgRenderer::setOptions()에 QtSvg::Tiny12FeaturesOnly 플래그를 전달하여 렌더러가 이러한 추가 기능을 무시하도록 지시할 수 있습니다.

확장 기능

Qt 6.7부터 Qt는 다음과 같은 확장 요소 및 관련 속성을 지원합니다:

마스크

마스킹은 ` <mask> ` 요소와 `mask` 속성의 형태로 지원됩니다.

참고: < clipPath>는 지원되지 않습니다.

<mask>

<mask> 요소의 다음 속성이 지원됩니다:

  • x
  • y
  • width
  • height
  • maskUnits
  • maskContentUnits

mask 속성은 모든 그래픽 및 구조적 SVG 요소에서 지원됩니다.

심볼, 마커 및 패턴

<symbol>

<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

xml-ph-0000@deepl.internal에 대해서는

  • marker-start
  • marker-mid
  • marker-end

는 <path>, <line>, <polyline> 및 <polygon> 에서 지원됩니다.

<pattern>

다음 속성이 지원됩니다:

  • x
  • y
  • width
  • height
  • patternUnits
  • patternContentUnits
  • patternTransform
  • viewBox

다음 속성은 지원되지 않습니다:

  • preserveAspectRatio
  • xlink:href

필터

FillPaint StrokePaintBackgroundImage BackgroundAlpha

<filter>

<filter> 요소의 다음 속성이 지원됩니다:

  • x
  • y
  • width
  • height
  • filterUnits
  • primitiveUnits

<filter> 요소의 다음 속성은 지원되지 않습니다:

  • filterRes
  • xlink:href

filter 속성은 모든 그래픽 및 구조적 SVG 요소에서 지원됩니다.

필터 프리미티브

filter 요소에는 다양한 필터 프리미티브가 포함됩니다. 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

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