<?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[Image resource, showing in Qt Creator but not at runtime.]]></title><description><![CDATA[<p dir="auto">I have an image resource which has the alias <strong>ICN_CONNTD</strong> the image is a png file and is 64x64.  In the source I have:</p>
<pre><code>mppmConnected = new Pixmap(":/ICN_CONNTD");
</code></pre>
<p dir="auto">If I hover the mouse of the above line the image is displayed in a hovering context display.  When I debug in Qt Creator and stop at the above line then step over it, <strong>mppmConnected</strong> is returned as (0x0) and highlighted as red.</p>
<p dir="auto">Why isn't this working?  I have use exactly the same method in another project and that works fine.</p>
<p dir="auto">commsTester.qrc:</p>
<pre><code>&lt;RCC&gt;
    &lt;qresource prefix="/"&gt;
        &lt;file alias="ICN_CONNTD"&gt;../res/conntd.png&lt;/file&gt;
        &lt;file alias="ICN_DISCONTD"&gt;../res/discontd.png&lt;/file&gt;
    &lt;/qresource&gt;
&lt;/RCC&gt;
</code></pre>
]]></description><link>https://forum.qt.io/topic/127080/image-resource-showing-in-qt-creator-but-not-at-runtime</link><generator>RSS for Node</generator><lastBuildDate>Thu, 24 Sep 2026 02:42:03 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/127080.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 28 May 2021 08:50:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Image resource, showing in Qt Creator but not at runtime. on Fri, 28 May 2021 09:05:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/splatten">@<bdi>SPlatten</bdi></a> have you (explicitly) rerun qmake after adding the image to your resource file?</p>
]]></description><link>https://forum.qt.io/post/662075</link><guid isPermaLink="true">https://forum.qt.io/post/662075</guid><dc:creator><![CDATA[J.Hilk]]></dc:creator><pubDate>Fri, 28 May 2021 09:05:58 GMT</pubDate></item><item><title><![CDATA[Reply to Image resource, showing in Qt Creator but not at runtime. on Fri, 28 May 2021 09:10:22 GMT]]></title><description><![CDATA[<p dir="auto">@J-Hilk , Yes, just to be sure, have cleaned, run <strong>qmake</strong> and rebuild again.  Now its all good.</p>
]]></description><link>https://forum.qt.io/post/662076</link><guid isPermaLink="true">https://forum.qt.io/post/662076</guid><dc:creator><![CDATA[SPlatten]]></dc:creator><pubDate>Fri, 28 May 2021 09:10:22 GMT</pubDate></item><item><title><![CDATA[Reply to Image resource, showing in Qt Creator but not at runtime. on Fri, 28 May 2021 09:05:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/splatten">@<bdi>SPlatten</bdi></a> have you (explicitly) rerun qmake after adding the image to your resource file?</p>
]]></description><link>https://forum.qt.io/post/662075</link><guid isPermaLink="true">https://forum.qt.io/post/662075</guid><dc:creator><![CDATA[J.Hilk]]></dc:creator><pubDate>Fri, 28 May 2021 09:05:58 GMT</pubDate></item></channel></rss>