How would you suggest to handle svg with QPixmap?
The construct QPixmap(":/myfile.svg");
then call of scaled()
does not work. The QPixmap gets pixelised.
Thx.
How would you suggest to handle svg with QPixmap?
The construct QPixmap(":/myfile.svg");
then call of scaled()
does not work. The QPixmap gets pixelised.
Thx.
Something like that:
Now there is much simpler way without needing of SVG module
So simple and works fine. Atleast in my case it worked.
You should use SVGRenderer to render it onto a
QImage
. From there you can convert to aQPixmap
withQPixmap::convertFromImage
.