-
Bug
-
Resolution: Fixed
-
P1: Critical
-
5.12
-
None
-
VS2017
-
-
1e820e62d (dev), 54659f917 (6.8)
Before I use Qt 5.5.1 to draw some shapes on the QGraphicsView. I used fillRect or fillPath with a QImage brush. and then export to SVG file with the module QSvgGenerator, it works on Qt 5.5.1.
But now i update to Qt 5.12.3, same code, but the svg is not work now. It seems the image or pixmap brush now works when exporting to svg files.
Easy way to test this bug.
..\Examples\Qt-5.12.3\svg\svggenerator\displaywidget.cpp.
Function:
void DisplayWidget::paint(QPainter &painter)
add only one line to test:
painter.fillRect(QRect(0, 0, 50, 50), QBrush(QImage("D:
1.bmp")));
compile, save as svg. svg only draw the raw image, but the the brush part is not there.