<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Version information for conditional compilation missing in Qt Maps SDK Questions</title>
    <link>https://community.esri.com/t5/qt-maps-sdk-questions/version-information-for-conditional-compilation/m-p/358432#M1798</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately there is no version information (Major: 10, Minor: 2, Patch 6 -&amp;gt; 10.2.6) available neither during compile time nor during runtime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;(taken vom qglobal - Qt5.4)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #define QT_VERSION_STR&amp;nbsp;&amp;nbsp; "5.4.1"&lt;/SPAN&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; QT_VERSION is (major &amp;lt;&amp;lt; 16) + (minor &amp;lt;&amp;lt; &lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt; + patch.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #define QT_VERSION 0x050401&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; can be used like #if (QT_VERSION &amp;gt;= QT_VERSION_CHECK(4, 4, 0))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #define QT_VERSION_CHECK(major, minor, patch) ((major&amp;lt;&amp;lt;16)|(minor&amp;lt;&amp;lt;8)|(patch))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How shall i make code compatible to 10.2.3, 10.2.5 &lt;EM&gt;&lt;STRONG&gt;and&lt;/STRONG&gt;&lt;/EM&gt; 10.2.6 keeping the api modification in mind.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Aug 2015 07:22:05 GMT</pubDate>
    <dc:creator>NorbertThoden</dc:creator>
    <dc:date>2015-08-06T07:22:05Z</dc:date>
    <item>
      <title>Version information for conditional compilation missing</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/version-information-for-conditional-compilation/m-p/358432#M1798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately there is no version information (Major: 10, Minor: 2, Patch 6 -&amp;gt; 10.2.6) available neither during compile time nor during runtime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;(taken vom qglobal - Qt5.4)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #define QT_VERSION_STR&amp;nbsp;&amp;nbsp; "5.4.1"&lt;/SPAN&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; QT_VERSION is (major &amp;lt;&amp;lt; 16) + (minor &amp;lt;&amp;lt; &lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt; + patch.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #define QT_VERSION 0x050401&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; can be used like #if (QT_VERSION &amp;gt;= QT_VERSION_CHECK(4, 4, 0))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #define QT_VERSION_CHECK(major, minor, patch) ((major&amp;lt;&amp;lt;16)|(minor&amp;lt;&amp;lt;8)|(patch))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How shall i make code compatible to 10.2.3, 10.2.5 &lt;EM&gt;&lt;STRONG&gt;and&lt;/STRONG&gt;&lt;/EM&gt; 10.2.6 keeping the api modification in mind.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 07:22:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/version-information-for-conditional-compilation/m-p/358432#M1798</guid>
      <dc:creator>NorbertThoden</dc:creator>
      <dc:date>2015-08-06T07:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: Version information for conditional compilation missing</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/version-information-for-conditional-compilation/m-p/358433#M1799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Norbert-&lt;/P&gt;&lt;P&gt;This isn't available OOTB.&amp;nbsp; You could try to add an additional entry to the DEFINES list in the pro file.&amp;nbsp; Then if you are building against 10.2.3, use the 10.2.3 headers and define ARCGIS_VERSION_10_2_3 or something like that, and so on for each different version.&lt;/P&gt;&lt;P&gt;-Luke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 16:21:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/version-information-for-conditional-compilation/m-p/358433#M1799</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2015-08-06T16:21:54Z</dc:date>
    </item>
  </channel>
</rss>

