<?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 Re: Licensing the application in Qt Maps SDK Questions</title>
    <link>https://community.esri.com/t5/qt-maps-sdk-questions/licensing-the-application/m-p/44858#M196</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Prem-&lt;/P&gt;&lt;P&gt;Yes, just copy the whole string into it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Luke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Jul 2015 18:52:55 GMT</pubDate>
    <dc:creator>LucasDanzinger</dc:creator>
    <dc:date>2015-07-09T18:52:55Z</dc:date>
    <item>
      <title>Licensing the application</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/licensing-the-application/m-p/44855#M193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got my runtime licenses and also generated the client id and set it for the application. &lt;/P&gt;&lt;P&gt;Here is my question, the sample shows the code below. What are the 4 parameters in this? my license code that I purchased is the format RUD..........&amp;nbsp; . &lt;/P&gt;&lt;P&gt;If I put this is Component.onCompleted in main.qml will that be sufficient?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="kd" style="color: #0000ff; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12.25px;"&gt;var&lt;/SPAN&gt;&lt;SPAN style="color: #4d4d4d; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12.25px; background-color: #fafafa;"&gt; &lt;/SPAN&gt;&lt;SPAN class="nx" style="color: #4d4d4d; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12.25px;"&gt;licenseCode&lt;/SPAN&gt;&lt;SPAN style="color: #4d4d4d; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12.25px; background-color: #fafafa;"&gt; &lt;/SPAN&gt;&lt;SPAN class="o" style="color: #4d4d4d; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12.25px;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #4d4d4d; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12.25px; background-color: #fafafa;"&gt; &lt;/SPAN&gt;&lt;SPAN class="s2" style="color: #a31515; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12.25px;"&gt;"runtimestandard,101,rux00000,none,XXXXXXX"&lt;/SPAN&gt;&lt;SPAN class="p" style="color: #4d4d4d; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12.25px;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 19:35:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/licensing-the-application/m-p/44855#M193</guid>
      <dc:creator>PremRadhakrishnan</dc:creator>
      <dc:date>2015-07-08T19:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: Licensing the application</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/licensing-the-application/m-p/44856#M194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prem-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks like our doc hasn't been updated correctly. I will put in a request to get this fixed up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since you are obtaining a license and not going through portal, you will need to do the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Go into the AppInfo.h and set your client id&lt;/P&gt;&lt;P&gt;- Go into the AppInfo.h and set your license (and uncomment it)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will eventually call the following lines in the main.cpp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;// Initialize license


#ifdef kClientID
&amp;nbsp;&amp;nbsp;&amp;nbsp; QCoreApplication::instance()-&amp;gt;setProperty("ArcGIS.Runtime.clientId", kClientId);
#ifdef kLicense
&amp;nbsp;&amp;nbsp;&amp;nbsp; QCoreApplication::instance()-&amp;gt;setProperty("ArcGIS.Runtime.license", kLicense);
#endif
#endif

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you aren't using our template, then use the above lines and replace kClientId and kLicense with the info you have received.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You actually can't set the license in QML, as this could be a potential security issue, as the QML is interpreted and not necessarily compiled. You can check if everything is set correctly in QML though, by doing something like the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Component.onCompleted: {
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (ArcGISRuntime.license.licenseLevel === Enums.LicenseLevelBasic) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log("basic");
&amp;nbsp;&amp;nbsp;&amp;nbsp; } else if (ArcGISRuntime.license.licenseLevel === Enums.LicenseLevelStandard) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log("standard");
&amp;nbsp;&amp;nbsp;&amp;nbsp; } else if (ArcGISRuntime.license.licenseLevel === Enums.LicenseLevelDeveloper) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log("developer");
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
}&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Luke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:43:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/licensing-the-application/m-p/44856#M194</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2021-12-10T21:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: Licensing the application</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/licensing-the-application/m-p/44857#M195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Lucas. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do I actually put in kLicense? Just the RUD... code ? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 18:46:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/licensing-the-application/m-p/44857#M195</guid>
      <dc:creator>PremRadhakrishnan</dc:creator>
      <dc:date>2015-07-09T18:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: Licensing the application</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/licensing-the-application/m-p/44858#M196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Prem-&lt;/P&gt;&lt;P&gt;Yes, just copy the whole string into it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Luke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 18:52:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/licensing-the-application/m-p/44858#M196</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2015-07-09T18:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: Licensing the application</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/licensing-the-application/m-p/44859#M197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I purchased a license pack and I put the code in but my license level according to console log is "basic". The license that I purchased is standard license though. Any thoughts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should it be like this ? &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;#define&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000080;"&gt;kLicense&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"RUDNNNNNNNNN" // N is a number &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;or &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;&lt;SPAN style="color: #4d4d4d; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12.25px; background-color: #fafafa;"&gt;#define kLIcense &lt;/SPAN&gt;&lt;SPAN class="s2" style="color: #a31515; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12.25px;"&gt;"runtimestandard,101,&lt;SPAN style="color: #008000;"&gt;RUDNNNNNNNNN&lt;/SPAN&gt;,none,XXXXXXX"&lt;/SPAN&gt;&lt;SPAN class="p" style="color: #4d4d4d; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12.25px;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;&lt;SPAN class="p" style="color: #4d4d4d; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12.25px;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;&lt;SPAN class="p" style="color: #4d4d4d; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12.25px;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;&lt;SPAN class="p" style="color: #4d4d4d; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12.25px;"&gt;what are the 4 parts in the string ? &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jul 2015 02:45:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/licensing-the-application/m-p/44859#M197</guid>
      <dc:creator>PremRadhakrishnan</dc:creator>
      <dc:date>2015-07-10T02:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: Licensing the application</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/licensing-the-application/m-p/44860#M198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Was able to get this resolved with help from Lucas and the ESRI team. &lt;/P&gt;&lt;P&gt;Make sure that you get the whole license string from your contact at ESRI and not just a code. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Prem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jul 2015 14:16:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/licensing-the-application/m-p/44860#M198</guid>
      <dc:creator>PremRadhakrishnan</dc:creator>
      <dc:date>2015-07-19T14:16:48Z</dc:date>
    </item>
  </channel>
</rss>

