diff --git a/core/qthelper.cpp b/core/qthelper.cpp index a244c1471..a526cf569 100644 --- a/core/qthelper.cpp +++ b/core/qthelper.cpp @@ -1739,6 +1739,7 @@ QImage renderSVGIconWidth(const char *id, int size) QSvgRenderer svg{QString(id)}; QSize svgSize = svg.defaultSize(); QImage res(size, size * svgSize.height() / svgSize.width(), QImage::Format_ARGB32); + res.fill(Qt::transparent); QPainter painter(&res); svg.render(&painter); return res;