<?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[Macro for Qt Simulator in .pro and source files.]]></title><description><![CDATA[<p dir="auto">Hello, I just want to know is there are any way to know, that we are building application for Qt Simulator target.<br />
For example, for Maemo5 device  in .pro file I can make branch by maemo5 directive:<br />
@maemo5 {<br />
dosomething<br />
}@<br />
and in the .cpp and .h files I can check by Q_WS_MAEMO_5 macro:<br />
@#if defined(Q_WS_MAEMO_5)<br />
dothomething<br />
#endif<br />
@</p>
<p dir="auto">But what about Qt Simulator, is there any predefined macro and directive for it?<br />
Surely, I can pass something like "DEFINES+=QT_SIMULATOR" to qmake, and check it in the .pro and sources.<br />
@contains($$DEFINES,"QT_SUMULATOR") {<br />
doSomething<br />
}<br />
@<br />
But it's not good solution, it's only workaround.</p>
]]></description><link>https://forum.qt.io/topic/195/macro-for-qt-simulator-in-pro-and-source-files</link><generator>RSS for Node</generator><lastBuildDate>Wed, 20 May 2026 07:32:23 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/195.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 06 Jul 2010 06:45:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Macro for Qt Simulator in .pro and source files. on Sat, 10 Jul 2010 07:25:23 GMT]]></title><description><![CDATA[<p dir="auto">[quote author="silvansky" date="1278666566"]for now there is QT_SIMULATOR macro for source files (in the latest Nokia Qt SDK)<br />
but I don&amp;#39;t know if there is somethong for .pro files</p>
<p dir="auto">UPD:<br />
in .pro files you can use</p>
<p dir="auto">simulator &amp;#123;<br />
# do something<br />
&amp;#125;[/quote]</p>
<p dir="auto">Thank you</p>
]]></description><link>https://forum.qt.io/post/52939</link><guid isPermaLink="true">https://forum.qt.io/post/52939</guid><dc:creator><![CDATA[kamalakshantv]]></dc:creator><pubDate>Sat, 10 Jul 2010 07:25:23 GMT</pubDate></item><item><title><![CDATA[Reply to Macro for Qt Simulator in .pro and source files. on Fri, 09 Jul 2010 19:08:53 GMT]]></title><description><![CDATA[<p dir="auto">[quote author="silvansky" date="1278666566"]for now there is QT_SIMULATOR macro for source files (in the latest Nokia Qt SDK)<br />
but I don&amp;#39;t know if there is somethong for .pro files</p>
<p dir="auto">UPD:<br />
in .pro files you can use</p>
<p dir="auto">simulator &amp;#123;<br />
# do something<br />
&amp;#125;[/quote]</p>
<p dir="auto">O, It's brilliant, Just I need. Thank you a lot.</p>
]]></description><link>https://forum.qt.io/post/52935</link><guid isPermaLink="true">https://forum.qt.io/post/52935</guid><dc:creator><![CDATA[rule]]></dc:creator><pubDate>Fri, 09 Jul 2010 19:08:53 GMT</pubDate></item><item><title><![CDATA[Reply to Macro for Qt Simulator in .pro and source files. on Fri, 09 Jul 2010 09:09:26 GMT]]></title><description><![CDATA[<p dir="auto">for now there is QT_SIMULATOR macro for source files (in the latest Nokia Qt SDK)<br />
but I don't know if there is somethong for .pro files</p>
<p dir="auto">UPD:<br />
in .pro files you can use</p>
<p dir="auto">simulator {<br />
# do something<br />
}</p>
]]></description><link>https://forum.qt.io/post/52871</link><guid isPermaLink="true">https://forum.qt.io/post/52871</guid><dc:creator><![CDATA[silvansky]]></dc:creator><pubDate>Fri, 09 Jul 2010 09:09:26 GMT</pubDate></item><item><title><![CDATA[Reply to Macro for Qt Simulator in .pro and source files. on Tue, 06 Jul 2010 09:39:15 GMT]]></title><description><![CDATA[<p dir="auto">It seems as of now there are only workarounds</p>
<p dir="auto">Another one is discussed "here(<a href="http://discussion.forum.nokia.com/forum/showthread.php?187052-Managing-different-SDK-s-in-pro-file" target="_blank" rel="noopener noreferrer nofollow ugc">http://discussion.forum.nokia.com/forum/showthread.php?187052-Managing-different-SDK-s-in-pro-file</a>)":<a href="http://discussion.forum.nokia.com/forum/showthread.php?187052-Managing-different-SDK-s-in-pro-file" target="_blank" rel="noopener noreferrer nofollow ugc">http://discussion.forum.nokia.com/forum/showthread.php?187052-Managing-different-SDK-s-in-pro-file</a>.</p>
]]></description><link>https://forum.qt.io/post/52778</link><guid isPermaLink="true">https://forum.qt.io/post/52778</guid><dc:creator><![CDATA[kamalakshantv]]></dc:creator><pubDate>Tue, 06 Jul 2010 09:39:15 GMT</pubDate></item></channel></rss>