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

QSvgWidget : SVG file rendered incorrectly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P3: Somewhat important
    • None
    • 5.15.2
    • SVG Support
    • None
    • Linux/Wayland, Linux/X11

    Description

      The attached SVG file ("test.svg") doesn't get rendered correctly when displayed using a QSvgWidget. Here is a screenshot of the incorrect render -
       


       

      The "zoomed-in" arrows leak outside the box, which doesn't happen in firefox/inkscape -

       
       

      The problem persists even after opening test.svg in Inkscape and saving it as a new SVG file.

      PFA the sample main.cpp.

      Attachments

        1. image-2021-02-01-14-41-26-392.png
          image-2021-02-01-14-41-26-392.png
          1.37 MB
        2. image-2021-02-01-14-42-33-546.png
          image-2021-02-01-14-42-33-546.png
          1.33 MB
        3. main.cpp
          0.3 kB
        4. SvgTest.pro
          0.5 kB
        5. test.svg
          2.12 MB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            abcdjdj Madhav Kanbur
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes