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

SVG images with wrapped <svg> tag are broken (Mobile)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.4.2
    • SVG Support
    • None
    • Android, iOS/tvOS/watchOS

      Both the problematic files have their <svg> tag wrapped in another <svg> tag.

      You can use an online tool like https://www.svgviewer.dev/ to check it easily.
      If the outer <svg> tag is removed, they work fine.

      This issue can be reproduced, only on Mobile platforms, not desktop.

       

      Attached the problematic SVGs, and the fixed ones.

      This behaviour did not happen on Qt5.

       

      Is it a bug or Qt wants to do it this way?

       

        1. svg.qml
          0.1 kB
        2. settings.svg
          2 kB
        3. settings_fixed.svg
          2 kB
        4. IMG_55ECE154112C-1.jpeg
          IMG_55ECE154112C-1.jpeg
          290 kB
        5. account_linking.svg
          36 kB
        6. account_linking_fixed.svg
          36 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qt.team.graphics.and.multimedia Qt Graphics Team
            albertoromero alberto romero
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes