Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
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