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

SVG transparency rendering problem (QTBUG-4908) still not fixed in 4.8.5

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P1: Critical
    • 4.6.1
    • 4.8.5
    • SVG Support
    • None
    • Tested on MacOS 10.8.4
    • 4b815774358c3c981dc8bbbcb0dd68abe2e812f2

    Description

      There's a problem with SVG rendering with the QSvgRenderer. Transparency is not rendered correctly; areas supposed to be transparent, are displayed as gray/white. Provided example code is used in rendering SVG-graphics. Attached SVG file can be used to verify the problem.

      QSvgRenderer renderer(svgFileName);
      m_pixmap = QPixmap(renderer.defaultSize());
      m_pixmap.fill(Qt::transparent);
      QPainter painter(&m_pixmap);
      renderer.render(&painter);

      This bug was closed as fixed in 4.6 (QTBUG-4908) but still persists.

      Attachments

        1. dino-bug.png
          dino-bug.png
          50 kB
        2. dinosaur.svg
          91 kB
        3. QTBUG_33536_svgtransparency.zip
          38 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            andreasloew Andreas Loew
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes