<?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[Unable to display Qpixmap png images in release mode]]></title><description><![CDATA[<p dir="auto">Hi,<br />
I know some people have asked this question before and I've tried the solutions suggested but they didn't work for me so I'm just gonna try to ask for help again here.<br />
I have images that will be displayed during runtime, they are ok when compiled in debug mode but when build in release mode, the images cannot be seen. I also have /imageformats dir with qmng.dll file in my application folder.</p>
<p dir="auto">My codes are simple as such:<br />
@<br />
void RadioUserWindow::verify_fields()<br />
{<br />
QPixmap red (":/icons/circle-red.png");<br />
if (//some condition)<br />
{<br />
ui-&gt;label_12-&gt;setHidden(false);<br />
ui-&gt;label_12-&gt;setPixmap(red);<br />
}<br />
}<br />
@</p>
]]></description><link>https://forum.qt.io/topic/47216/unable-to-display-qpixmap-png-images-in-release-mode</link><generator>RSS for Node</generator><lastBuildDate>Thu, 24 Sep 2026 03:43:47 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/47216.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 20 Oct 2014 07:23:28 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Unable to display Qpixmap png images in release mode on Mon, 20 Oct 2014 20:23:02 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">One thing you can try to find where it's failing is to open your file with QFile and check what error it returns</p>
]]></description><link>https://forum.qt.io/post/248390</link><guid isPermaLink="true">https://forum.qt.io/post/248390</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Mon, 20 Oct 2014 20:23:02 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to display Qpixmap png images in release mode on Mon, 20 Oct 2014 14:18:46 GMT]]></title><description><![CDATA[<p dir="auto">Weird... PNG does not require plugins; it is built into Qt directly.</p>
]]></description><link>https://forum.qt.io/post/248338</link><guid isPermaLink="true">https://forum.qt.io/post/248338</guid><dc:creator><![CDATA[andre]]></dc:creator><pubDate>Mon, 20 Oct 2014 14:18:46 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to display Qpixmap png images in release mode on Mon, 20 Oct 2014 11:29:27 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">are you sure that qmng.dll is for png files?</p>
]]></description><link>https://forum.qt.io/post/248321</link><guid isPermaLink="true">https://forum.qt.io/post/248321</guid><dc:creator><![CDATA[giesbert]]></dc:creator><pubDate>Mon, 20 Oct 2014 11:29:27 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to display Qpixmap png images in release mode on Mon, 20 Oct 2014 11:24:53 GMT]]></title><description><![CDATA[<p dir="auto">The standard questions in this case are: what's your folder structure exactly and which dlls did you copy there? Do you have multiple Qt versions installed and are you sure you didn't mix them? Are you sure you didn't copy dlls from Qt Creator directory instead of Qt directory? Do you have a custom qt.conf file in your app directory? I know you said you've got imageformats dir but many people think they got it right but they don't.</p>
<p dir="auto">If all these things check out you can use "Dependency Walker":<a href="http://www.dependencywalker.com/" target="_blank" rel="noopener noreferrer nofollow ugc">http://www.dependencywalker.com/</a>. Run it in <em>profile</em> mode and trigger the method above. DW will tell you which dll the app tries to load, where it is located and if it's found at all or something is missing.</p>
]]></description><link>https://forum.qt.io/post/248319</link><guid isPermaLink="true">https://forum.qt.io/post/248319</guid><dc:creator><![CDATA[Chris Kawa]]></dc:creator><pubDate>Mon, 20 Oct 2014 11:24:53 GMT</pubDate></item></channel></rss>