<?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[Can I stop a QIcon antialiasing when rendering an SVG file?]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">I am using svg files for icons and I load them directly into a QIcon and then pass them to a QToolButton as its Icon.</p>
<p dir="auto">Like this...<br />
@<br />
...<br />
QIcon bicon(filename);<br />
....<br />
button-&gt;setIcon(bicon);<br />
...<br />
@</p>
<p dir="auto">The SVG image is rendered with antialiasing and I would like have it not use antialiasing. How can I prevent it rendering with antialiasing?</p>
<p dir="auto">Do  I need to implement the paintEvent() function and turn it off there or is there some other way?</p>
<p dir="auto">Thanks</p>
]]></description><link>https://forum.qt.io/topic/31209/can-i-stop-a-qicon-antialiasing-when-rendering-an-svg-file</link><generator>RSS for Node</generator><lastBuildDate>Wed, 06 May 2026 22:08:19 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/31209.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 27 Aug 2013 00:57:22 GMT</pubDate><ttl>60</ttl></channel></rss>