SVG Gradients in Qt5
-
Hi community,
I'm confused, are gradients in SVG actually supported, or not?
I found some posts that indicate that gradients are supported and working, but other confused me.I'm using Qt5, QtSvg.QSvgWidget. I've loaded an image created in InkScape and no gradients are shown (the areas get transparent).
-
According to the Qt docs TinySVG 1.2 static is supported. And according to the TinySVG 1.2 spec there's linearGradient in TinySVG 1.2.
You can also simply look into the Qt source code and you'll see that gradients are supported. -
According to the Qt docs TinySVG 1.2 static is supported. And according to the TinySVG 1.2 spec there's linearGradient in TinySVG 1.2.
You can also simply look into the Qt source code and you'll see that gradients are supported.@Christian-Ehrlicher Thank you. I noticed that TinySVG is supported and noticed there references to gradients. But wasn't sure if/how it translates to the real-world support.
So I'll go back to minimal usable code and trivial SVG and do some tests again. I get a hunch, that the problem is that InkScape does not produced TinySVG compatible files.