<?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[MacOS X BigSur: QPainter::begin: Paint device returned engine == 0, type: 2]]></title><description><![CDATA[<p dir="auto">Hi<br />
I am getting this error while trying to draw a QPainterPath to a QPixMap. Below is the code</p>
<pre><code>            QPainterPath painterPath;
...&lt;draw path&gt;...
            QPixmap pixmap(size);
            pixmap.fill();
            QPainter pixmappainter(&amp;pixmap);
            pixmappainter.drawPath(painterPath);
            pixmappainter.end();

</code></pre>
<p dir="auto">I just brought this code from Windows, and it worked there. I am using qt 5.12.11 clang_64.<br />
The project is built by the XCode command line developer tools from within the CLion IDE using CMake 3.20.2.</p>
<p dir="auto">Edit :<br />
More info on this :</p>
<pre><code>2021-09-11 18:12:06.822766+0100 MapBrowser[2166:53633] MTLIOAccelDevice bad MetalPluginClassName property (null)
2021-09-11 18:12:06.880835+0100 MapBrowser[2166:53633] +[MTLIOAccelDevice registerDevices]: Zero Metal services found
end of file2021-09-11 18:12:18.200929+0100 MapBrowser[2166:53633] QPainter::begin: Paint device returned engine == 0, type: 3
</code></pre>
<p dir="auto">Metal : I am on a 2016 macbook pro. I don't think I have Metal hardware on this machine. Why does QT require it ? Can I change it to what I have ?</p>
<p dir="auto">Thanks,<br />
Regards</p>
]]></description><link>https://forum.qt.io/topic/130223/macos-x-bigsur-qpainter-begin-paint-device-returned-engine-0-type-2</link><generator>RSS for Node</generator><lastBuildDate>Sun, 26 Apr 2026 06:32:55 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/130223.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 11 Sep 2021 16:58:44 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to MacOS X BigSur: QPainter::begin: Paint device returned engine == 0, type: 2 on Sun, 12 Sep 2021 18:49:24 GMT]]></title><description><![CDATA[<p dir="auto"><a href="https://support.apple.com/en-us/HT202043" target="_blank" rel="noopener noreferrer nofollow ugc">https://support.apple.com/en-us/HT202043</a></p>
]]></description><link>https://forum.qt.io/post/680319</link><guid isPermaLink="true">https://forum.qt.io/post/680319</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Sun, 12 Sep 2021 18:49:24 GMT</pubDate></item><item><title><![CDATA[Reply to MacOS X BigSur: QPainter::begin: Paint device returned engine == 0, type: 2 on Sat, 11 Sep 2021 22:19:48 GMT]]></title><description><![CDATA[<p dir="auto">Force it ? How do I do that ?</p>
]]></description><link>https://forum.qt.io/post/680226</link><guid isPermaLink="true">https://forum.qt.io/post/680226</guid><dc:creator><![CDATA[Daniel Santos]]></dc:creator><pubDate>Sat, 11 Sep 2021 22:19:48 GMT</pubDate></item><item><title><![CDATA[Reply to MacOS X BigSur: QPainter::begin: Paint device returned engine == 0, type: 2 on Sat, 11 Sep 2021 19:34:48 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">If you have Big Sure running, then you have a Metal compatible machine otherwise you do not have the option to upgrade to it.</p>
<p dir="auto">What could be happening is that for some reason you machine is not switching to the discrete GPU.</p>
<p dir="auto">You can try to force the use it to see if things gets better.</p>
]]></description><link>https://forum.qt.io/post/680206</link><guid isPermaLink="true">https://forum.qt.io/post/680206</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Sat, 11 Sep 2021 19:34:48 GMT</pubDate></item></channel></rss>