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

SVG files with nested svg elements are not considered properly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.x
    • SVG Support
    • None
    • All

    Description

      SVGs with nested svg elements are not handled properly. At the very least from what I can tell, Qt ignores viewBox parameters in the inner svg elements.

       

       

      Run the test.py script, which opens Computer.svg and saves it as a png file.

      You will note that the inner design appears very small, on the top left of the image, instead of displaying the same way as in the SVG, prominently in the center.

       

      Then, edit test.py to use Phrase.svg, which works correctly.

       

      Please let me know if you require more information.

       Tested on PySide 6.0.0 and PySide 6.1.2.

      Attachments

        1. Computer.svg
          1 kB
        2. Phrase.svg
          0.8 kB
        3. test.py
          0.3 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            qtpy S C
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes