Initialize the image to be transparent
Otherwise since we're not painting all the pixels we get noise Fixes: #1517128
Approved by: Daniel d'Andrada
commitcb805622e6349c584943d73025e9b738ba996f60
authorAlbert Astals Cid <albert.astals@canonical.com>
dateThu 26 Nov 2015, 13:51 (11 years ago)
parenta205b3ef99d74a
plugins/Cursor/CursorImageProvider.cpp+1
@@ -43,6 +43,7 @@ BuiltInCursorImage::BuiltInCursorImage()
4343 "</svg>";
4444
4545 qimage = QImage(20, 32, QImage::Format_ARGB32);
46+ qimage.fill(Qt::transparent);
4647 QPainter imagePainter(&qimage);
4748
4849 QSvgRenderer *svgRenderer = new QSvgRenderer(QByteArray(svgString));