Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-116883 Qt Quick Shapes: Loading vector graphics
  3. QTBUG-126716

VectorImage/svgtoqml: No path container handling on root level

    XMLWordPrintable

Details

    • Technical task
    • Resolution: Fixed
    • P3: Somewhat important
    • 6.8.0 RC, 6.9.0 FF
    • SVG Support
    • None
    • All
    • 4d1fe0d69 (dev), 7dc127ada (6.8)

    Description

      When the svgtoqml tool was refactored, the visitStructureNodeStart() was given a special case for the root node: visitDocumentNodeStart(). However, the logic to handle path containers (so that multiple paths can be combined in a single shape item) was never copied into the root node functions, hence making it impossible for the root node to be a path container.

      This leads to suboptimal handling of some SVG files, where every path under the root is given its own separate Shape item: https://codereview.qt-project.org/c/qt/qtdeclarative/+/571193/3

      The logic to handle path containers should be added to the root node handling as well.

      Attachments

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

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            esabraha Eskil Abrahamsen Blomfeldt
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes