<?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[QSystemTrayIcon and relative path]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">How do you use an relative path on the systemtray icon image file? Right now I am using:</p>
<p dir="auto">trayIcon-&gt;setIcon(QIcon("absolute path""))</p>
]]></description><link>https://forum.qt.io/topic/12130/qsystemtrayicon-and-relative-path</link><generator>RSS for Node</generator><lastBuildDate>Wed, 08 Apr 2026 02:15:24 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/12130.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 12 Dec 2011 12:17:31 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QSystemTrayIcon and relative path on Mon, 12 Dec 2011 12:44:41 GMT]]></title><description><![CDATA[<p dir="auto">The easiest way must be using the &lsqb;&lsqb;doc:resources&rsqb;&rsqb;</p>
]]></description><link>https://forum.qt.io/post/120165</link><guid isPermaLink="true">https://forum.qt.io/post/120165</guid><dc:creator><![CDATA[Rahul Das]]></dc:creator><pubDate>Mon, 12 Dec 2011 12:44:41 GMT</pubDate></item><item><title><![CDATA[Reply to QSystemTrayIcon and relative path on Mon, 12 Dec 2011 12:44:22 GMT]]></title><description><![CDATA[<p dir="auto">That was the exact answer I was looking for! Thanks:)</p>
]]></description><link>https://forum.qt.io/post/120166</link><guid isPermaLink="true">https://forum.qt.io/post/120166</guid><dc:creator><![CDATA[tobben24]]></dc:creator><pubDate>Mon, 12 Dec 2011 12:44:22 GMT</pubDate></item><item><title><![CDATA[Reply to QSystemTrayIcon and relative path on Mon, 12 Dec 2011 12:42:57 GMT]]></title><description><![CDATA[<p dir="auto">A good approach for that small icons is to put them into a "Qt resource file":/doc/qt-4.7/resources.html. This way the icon is compiled into your application exe and you do not need to distribute it separately. Qt Creator has support for creating the resource file, but hand crafting is not difficult either.</p>
]]></description><link>https://forum.qt.io/post/120162</link><guid isPermaLink="true">https://forum.qt.io/post/120162</guid><dc:creator><![CDATA[goetz]]></dc:creator><pubDate>Mon, 12 Dec 2011 12:42:57 GMT</pubDate></item><item><title><![CDATA[Reply to QSystemTrayIcon and relative path on Mon, 12 Dec 2011 12:39:29 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for the reply.</p>
<p dir="auto">Okay, but do you know how I can include these image files into the same directory as the exe when I press run in QT Creator?</p>
]]></description><link>https://forum.qt.io/post/120159</link><guid isPermaLink="true">https://forum.qt.io/post/120159</guid><dc:creator><![CDATA[tobben24]]></dc:creator><pubDate>Mon, 12 Dec 2011 12:39:29 GMT</pubDate></item><item><title><![CDATA[Reply to QSystemTrayIcon and relative path on Mon, 12 Dec 2011 12:32:00 GMT]]></title><description><![CDATA[<p dir="auto">Use it as with every other relative path. The starting point is the current working directory, that's often the directory containing your exe.</p>
]]></description><link>https://forum.qt.io/post/120158</link><guid isPermaLink="true">https://forum.qt.io/post/120158</guid><dc:creator><![CDATA[goetz]]></dc:creator><pubDate>Mon, 12 Dec 2011 12:32:00 GMT</pubDate></item></channel></rss>