<?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: Loading ArcGIS map into exisitng UI project in Qt Maps SDK Questions</title>
    <link>https://community.esri.com/t5/qt-maps-sdk-questions/loading-arcgis-map-into-exisitng-ui-project/m-p/433468#M2192</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Luke,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried this and it worked!&amp;nbsp; The problem now is that when I try to add the sample Map, It gives me another error that it can't find the include files for the ones found in the MSVC 64 OpenGL but I'm sure I can figure that out.&amp;nbsp; The point that I want to make is that I have an existing UI that I created when I made a Qt Widgets application and I want to load a map into that UI instead of creating the map as the MainWidow.&amp;nbsp; I'm really new to both Qt and ArcGIS so I'm not sure what the correct way to go about it is.&amp;nbsp; I've tried looking at the examples but all of them seem to load the map as the application window, rather than as a separate window within the MainWindow.&amp;nbsp; Can you point me in the right direction?&amp;nbsp; The documentation that I have found so far hasn't been very helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Apr 2015 19:25:19 GMT</pubDate>
    <dc:creator>MiguelValencia1</dc:creator>
    <dc:date>2015-04-22T19:25:19Z</dc:date>
    <item>
      <title>Loading ArcGIS map into exisitng UI project</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/loading-arcgis-map-into-exisitng-ui-project/m-p/433465#M2189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to load a map into an existing UI project but I get errors whenever I try to compile.&amp;nbsp; At the moment, I can load a map if I just stick to using the ArcGIS template when I create a new project, but when I try to use #include "ArcGISRuntime.h" in my UI project, I get errors.&amp;nbsp; I tried to add the ArcGIS include directory in my .pro file by adding INCLUDEPATH += "C:\Program Files (x86)\ArcGIS SDKs\Qt10.2.5\sdk\windows\include" but I still get errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there no other way to try to load a map into an existing UI project that has a ui form, or am I forced to use the ArcGIS templates to load a map?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 17:20:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/loading-arcgis-map-into-exisitng-ui-project/m-p/433465#M2189</guid>
      <dc:creator>MiguelValencia1</dc:creator>
      <dc:date>2015-04-21T17:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: Loading ArcGIS map into exisitng UI project</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/loading-arcgis-map-into-exisitng-ui-project/m-p/433466#M2190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Miguel-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suggest you take a look at the pro file in one of the ArcGIS Template apps. One of the things it sets is to use the prf file called esri_runtime_qt. I tried creating a new Qt Widgets app (non ArcGIS Template), and by adding the below line to the pro file, I was able to include ArcGISRuntime.h.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800080;"&gt;CONFIG&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;+=&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;c++11&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;esri_runtime_qt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that doesn't work, I would try comparing your .pro files and see what the difference is between the two.&lt;/P&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>Tue, 21 Apr 2015 18:56:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/loading-arcgis-map-into-exisitng-ui-project/m-p/433466#M2190</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2015-04-21T18:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: Loading ArcGIS map into exisitng UI project</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/loading-arcgis-map-into-exisitng-ui-project/m-p/433467#M2191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Luke,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for the response.&amp;nbsp; I'll try to implement that as soon as I can and will let you know if I still have issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 20:51:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/loading-arcgis-map-into-exisitng-ui-project/m-p/433467#M2191</guid>
      <dc:creator>MiguelValencia1</dc:creator>
      <dc:date>2015-04-21T20:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: Loading ArcGIS map into exisitng UI project</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/loading-arcgis-map-into-exisitng-ui-project/m-p/433468#M2192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Luke,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried this and it worked!&amp;nbsp; The problem now is that when I try to add the sample Map, It gives me another error that it can't find the include files for the ones found in the MSVC 64 OpenGL but I'm sure I can figure that out.&amp;nbsp; The point that I want to make is that I have an existing UI that I created when I made a Qt Widgets application and I want to load a map into that UI instead of creating the map as the MainWidow.&amp;nbsp; I'm really new to both Qt and ArcGIS so I'm not sure what the correct way to go about it is.&amp;nbsp; I've tried looking at the examples but all of them seem to load the map as the application window, rather than as a separate window within the MainWindow.&amp;nbsp; Can you point me in the right direction?&amp;nbsp; The documentation that I have found so far hasn't been very helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 19:25:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/loading-arcgis-map-into-exisitng-ui-project/m-p/433468#M2192</guid>
      <dc:creator>MiguelValencia1</dc:creator>
      <dc:date>2015-04-22T19:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: Loading ArcGIS map into exisitng UI project</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/loading-arcgis-map-into-exisitng-ui-project/m-p/433469#M2193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Miguel-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure I know exactly what your issue is, but in general, the map needs to be bound to a MapGraphicsView. This is one of our classes, and it derives from QGraphicsView. Read more about this here - &lt;A href="https://developers.arcgis.com/qt/cpp/api-reference/class_esri_runtime_qt_1_1_map_graphics_view.html" title="https://developers.arcgis.com/qt/cpp/api-reference/class_esri_runtime_qt_1_1_map_graphics_view.html"&gt;EsriRuntimeQt::MapGraphicsView Class Reference&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you initialize your MapGraphicsView with your Map, you should be able to treat it like a QGraphicsView, and add it as a widget into your application.&lt;/P&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>Wed, 22 Apr 2015 22:11:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/loading-arcgis-map-into-exisitng-ui-project/m-p/433469#M2193</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2015-04-22T22:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: Loading ArcGIS map into exisitng UI project</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/loading-arcgis-map-into-exisitng-ui-project/m-p/433470#M2194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Luke,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the late response but thank you for the information.&amp;nbsp; It worked!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 17:28:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/loading-arcgis-map-into-exisitng-ui-project/m-p/433470#M2194</guid>
      <dc:creator>MiguelValencia1</dc:creator>
      <dc:date>2015-04-28T17:28:26Z</dc:date>
    </item>
  </channel>
</rss>

