Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
4.6.3
-
None
Description
When an SVG file is rendered in a QGraphicsScene as a QGraphicsSvgItem to a QSvgRenderer, the resulting SVG file will have unintended outlines around fill areas.
To reproduce:
1. Compile and run the attached project. It will display the included file "coda.svg" in a QGraphicsView. This is the correct output.
2. The project will also produce the file "gen.svg" in the project directory. Open "gen.svg" in a SVG editor like Adobe Illustrator.
3. Expand all the layers in the file. You will find a fill area and a separate outline which doesn't exist in the original SVG file.
The extra outline makes graphics objects look thicker than they actually are. The same behavior can be observed when rendering to a QPrinter with the output format set to PDF.