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

QSvgWidget : SVG file rendered incorrectly

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes