<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Rendering svg image onto QImage]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I have a QImage and I draw an svg image onto. Here is my simplified code:</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/void">@<bdi>void</bdi></a> WP::DrawImage(QImage &amp;mImage)<br />
{<br />
QPainter *pPainter = new QPainter(&amp;mImage);<br />
QSvgRenderer *svgImg = new QSvgRenderer(linkToSvgImage);</p>
<pre><code>QRect rct(0, 0, 500, 500);
svgImg-&gt;render(pPainter, rct);        
pPainter-&gt;end();

delete svgImg;
delete pPainter;
</code></pre>
<p dir="auto">}<br />
@</p>
<p dir="auto">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?</p>
]]></description><link>https://forum.qt.io/topic/29578/rendering-svg-image-onto-qimage</link><generator>RSS for Node</generator><lastBuildDate>Wed, 06 May 2026 15:31:20 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/29578.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 18 Jul 2013 09:40:16 GMT</pubDate><ttl>60</ttl></channel></rss>