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

QSvgRenderer invalids class attributes if an inline attibute is added

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.14.2, 5.15.1
    • SVG Support
    • Ubuntu GNU/Linux 20.10 (X11)
      libqt5svg5:amd64 5.14.2-2
      also tested in Qt 5.15.1
    • Linux/X11

      When  a svg path is of class "x" but has also inline extra attributes, then the class "x" attributes are not applied, only the extra inline attributes are applied. This can lead for example to non-drawing issue when the color attribute is in the class: it is then not applied.

      See proof test example source code here:

      http://brouits.free.fr/tmp/qsvgrenderer_css_mixed.zip

       (because attachement seem broken here).

      the example should draw 3 vertical lines. only two are printed. one full inline, one full class. the third line with mixed class and attributes does not print.

       

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

            Unassigned Unassigned
            brouits Benoît Rouits
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes