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

All brush styles exported by QSvgGenerator look like SolidPattern

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.15.1, 6.1.0 RC
    • 5.9.0, 5.15.0
    • SVG Support
    • None
    • 625ca761c7c88f80ee8217c820f1e1f60ca7ef4f (qt/qtsvg/dev) 769a119d9d6866b5d76f6e1df805599e246ac15b (qt/qtsvg/5.15)

    Description

      QSvgGenerator::savePatternBrush() wrongly adds a semicolon (probably a typo) after url name (line 247 in file qsvggenerator.cpp) making any brush style other than Qt:: NoBrush to be rendered like Qt::SolidPattern in any SVG viewer. The bug does not affect Qt <= 5.5.1, but I cannot test with other Qt release between 5.5 and 5.9.

      Furthermore, brushes exported by QSvgGenerator cannot be displayed correctly by QSvgRenderer. The error message is for example: "qt.svg: Could not resolve property: fillpattern13_ff0000".

      Attachments

        1. qsvgbug.zip
          2 kB
        2. qsvgbug.zip
          2 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vgt Eirik Aavitsland
            ion_vasilief Ion Vasilief
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes