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

SVG transparency rendering problem

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 4.6.1
    • 4.6.0
    • None
    • None
    • 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 doc("path to the svg");
      QPixmap pix(size.width(),size.height());
      pix.fill(Qt::transparent);

      QPainter painter(&pix);
      painter.setViewport(0, 0, size.width(), size.height());
      doc.render(&painter);

      Code has been tested and proven to work on Qt4.6 snapshots released in the beginning of September, but does not work anymore with 4.6 Beta 1

      Attachments

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

        Activity

          People

            jhautaka Jani Hautakangas
            e0101981 Janne Anttila
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes