<?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[setClipPath() geht nicht?]]></title><description><![CDATA[<p>ich versuche mit folgendem Code, einen transpareten Kreis in einem Schwarz Bild abzuscheiden. Leider ohne Erfolg.</p>
<p>Any insight?</p>
<pre><code>QPixmap result(myMask.size());
result.fill(QColor(0,0,0,255));
QPainter painter(&amp;result);
QPainterPath path;
path.addEllipse(QPoint(myMask.width()/2, myMask.height()/2), 10, 10);
painter.setClipPath(path);
painter.drawPixmap(QPoint(myMask.width()/2, myMask.height()/2), result);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/340009/setclippath-geht-nicht</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Apr 2026 12:21:25 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/340009.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 13 Oct 2016 15:04:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to setClipPath() geht nicht? on Thu, 13 Oct 2016 15:04:08 GMT]]></title><description><![CDATA[<p>ich versuche mit folgendem Code, einen transpareten Kreis in einem Schwarz Bild abzuscheiden. Leider ohne Erfolg.</p>
<p>Any insight?</p>
<pre><code>QPixmap result(myMask.size());
result.fill(QColor(0,0,0,255));
QPainter painter(&amp;result);
QPainterPath path;
path.addEllipse(QPoint(myMask.width()/2, myMask.height()/2), 10, 10);
painter.setClipPath(path);
painter.drawPixmap(QPoint(myMask.width()/2, myMask.height()/2), result);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2511475</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2511475</guid><dc:creator><![CDATA[softw_de]]></dc:creator><pubDate>Thu, 13 Oct 2016 15:04:08 GMT</pubDate></item></channel></rss>