Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-11409

SVG files are rendered to QSvgGenerator with superfluous outlines

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 4.6.3
    • SVG Support
    • 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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            wyrmhole Bernardo Ambiti
            Votes:
            3 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes