Details
-
Task
-
Resolution: Unresolved
-
P2: Important
-
None
-
None
-
None
-
a7a08b157 (dev), 29b848e9a (dev), 534d072fe (dev), e4b415338 (dev)
Description
Currently Qt supports SVG Tiny 1.2 standard.
Adding a few elements from SVG 2.0 can improve the compatibility substantially without overloading the module. The most requested elements are:
- https://developer.mozilla.org/en-US/docs/Web/SVG/Element/filter
- https://developer.mozilla.org/en-US/docs/Web/SVG/Element/tspan
- https://developer.mozilla.org/en-US/docs/Web/SVG/Element/mask
- https://developer.mozilla.org/en-US/docs/Web/SVG/Element/pattern
- https://developer.mozilla.org/en-US/docs/Web/SVG/Element/marker
- https://developer.mozilla.org/en-US/docs/Web/SVG/Element/symbol
- https://developer.mozilla.org/en-US/docs/Web/SVG/Element/tref but that is deprecated.
- https://developer.mozilla.org/en-US/docs/Web/SVG/Element/clipPath (lower priority)
And the following filters:
- https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feColorMatrix
- https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feoffset
- https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feGaussianBlur
- https://developer.mozilla.org/en-US/docs/Web/SVG/Element/fecomposite
Examples for all (but the deprecated tref) are appended here.
The task is to extend the current QSvgHandler and QSvgRenderer (and maybe QSvgGenerator) to parse and render these elements. A flag/property "StrictTiny" should be added to strictly follow the tiny 1.2 standard.
Attachments
Issue Links
- is required for
-
QTBUG-109067 Support the SVG2 as a format for graphical assets in the Qt framework
- In Progress
- relates to
-
QTBUG-102346 QIcon theme revamp
- In Progress
1.
|
SVG 2.0 "filter" element | Closed | Matthias Rauter | |
2.
|
SVG 2.0 "tspan" element | Closed | Matthias Rauter | |
3.
|
SVG 2.0 "mask" element | Closed | Matthias Rauter | |
4.
|
SVG 2.0 "pattern" element | Closed | Hatem ElKharashy | |
5.
|
SVG 2.0 "marker" element | Closed | Matthias Rauter | |
6.
|
SVG 2.0 "symbol" element | Closed | Matthias Rauter | |
7.
|
SVG 2.0 "tref" element | Closed | Matthias Rauter | |
8.
|
SVG 2.0 "feColorMatrix" filter | Closed | Matthias Rauter | |
9.
|
SVG 2.0 "feoffset" filter | Closed | Matthias Rauter | |
10.
|
SVG 2.0 "feGaussianBlur" filter | Closed | Matthias Rauter | |
11.
|
SVG 2.0 "fecomposite" filter | Closed | Matthias Rauter | |
12.
|
Tests for new features | Closed | Hatem ElKharashy | |
13.
|
SVG 2.0 "clippath" element | Reported | Matthias Rauter | |
14.
|
Add documentation about the SVG 2.0 extensions | Closed | Matthias Rauter | |
15.
|
SVG 2.0 "feBlend" filter | Closed | Magdalena Stojek |