I have a QImage and I draw an svg image onto. Here is my simplified code:
However, the painted image is aliased and I want to have an anti-aliased image. I have tried setRenderHints() but didn’t help. Could anyone help me about how to implement it?
void WP::DrawImage(QImage &mImage)
QPainter *pPainter = new QPainter(&mImage);
QSvgRenderer *svgImg = new QSvgRenderer(linkToSvgImage);
QRect rct(0, 0, 500, 500);
I tried setRenderHints before render but no joy.
I tried to paint onto QPixmap instead of QImage but also no joy.