<?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[Qt ressource files dont get compiled - how to manual]]></title><description><![CDATA[<p dir="auto">Hi.</p>
<p dir="auto">My Qt SDK does not compile my .qrc file when i hit run.<br />
So how can i compile it manualy?<br />
i tried: "rcc res.qrc" in cmd but it did no work, or did not create the files which should be generated.</p>
<p dir="auto">Rest of Information:<br />
Qt 5.2.1 on Win7</p>
<p dir="auto">This is my .pro:<br />
#————————————————————————-</p>
<h1></h1>
<pre><code>Project created by QtCreator 2015-02-25T16:00:14
</code></pre>
<h1>#————————————————————————-</h1>
<p dir="auto">QT += core gui</p>
<p dir="auto">greaterThan(QT_MAJOR_VERSION, 4): QT += widgets</p>
<p dir="auto">TARGET = qtico<br />
TEMPLATE = app</p>
<p dir="auto">SOURCES += main.cpp\ qtico.cpp</p>
<p dir="auto">HEADERS += qtico.h</p>
<p dir="auto">FORMS += qtico.ui</p>
<p dir="auto">RESOURCES += \ res.qrc</p>
<p dir="auto">###########################################<br />
This is my res.qrc File:</p>
<p dir="auto">&lt;RCC&gt;<br />
&lt;qresource prefix=”/”&gt; &lt;file&gt;logo.png&lt;/file&gt; &lt;file&gt;icon.ico&lt;/file&gt;<br />
&lt;/qresource&gt;<br />
&lt;/RCC&gt;</p>
<p dir="auto">#########################################<br />
This is the code which should load the logo from the ressource:</p>
<p dir="auto">QImage image(“qrc:/logo.png”); if(!image.isNull()) { ui-&gt;label-&gt;setPixmap(QPixmap::fromImage(image)); ui-&gt;label-&gt;show(); }</p>
]]></description><link>https://forum.qt.io/topic/51640/qt-ressource-files-dont-get-compiled-how-to-manual</link><generator>RSS for Node</generator><lastBuildDate>Sun, 16 Aug 2026 09:43:23 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/51640.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 25 Feb 2015 15:59:03 GMT</pubDate><ttl>60</ttl></channel></rss>