|
BLOG
|
Later this year, the ArcGIS Runtime team will release version 200.0 of ArcGIS Runtime SDK for Qt, which will fully support Qt 6. Version 200 will be a significant update to the produce, as Qt 6 will enable us to support newer platforms, hardware, rendering APIs, and compilers (see our Qt 6 announcement blog post for more details). As you may know, the move from Qt 5 to Qt 6 contains breaking changes that must be addressed to compile your app with Qt 6. The Qt Company has created a migration guide to assist you in porting your apps. The first two steps are critically important: Upgrade your app to the latest version of Qt 5.15. Remove and replace deprecated APIs in your apps. Where possible, Qt has attempted to deprecate APIs that will be removed at Qt 6, which gives developers an opportunity to remove their usage from apps before moving to Qt 6. To make this migration as seamless as possible, Esri is following The Qt Company’s plan, and has deprecated several classes, properties, and methods in version 100.15 and prior. Our plan is to remove these APIs from version 200. In lockstep with The Qt Company, Esri recommends that you upgrade your apps to the latest version of Qt 5.15 and ArcGIS Runtime SDK version 100.15. After upgrading, we recommend removing deprecated API usage in your apps. Doing these things ahead of time will make your migration effort much simpler once version 200 is available. The next blogs in this series cover how to find and change deprecated APIs in your code. Because the workflow varies greatly between the C++ and QML APIs, there are two different posts. You only need to review the post for the API that you use.
... View more
09-02-2022
12:35 PM
|
3
|
0
|
640
|
|
POST
|
Hello, we don't have a specific sample or tutorial for Search/Geocode with Qt Widgets. The actual Runtime API usage will be the exact same as the tutorial (using LocatorTask to run a geocode). For the UI, you could use a QLineEdit - https://doc.qt.io/qt-5/qlineedit.html Here is a basic "Display a map" sample that will show you a very basic workflow of using our API in Widgets. The only real difference is that you will use a MapGraphicsView instead of a MapQuickView.
... View more
08-30-2022
07:24 AM
|
0
|
0
|
840
|
|
POST
|
The directory with the mmap and various other files is an "unpacked" mobile map package. The constructor to MobileMapPackage takes either the path to a file with .mmpk extension or to the directory of an unpacked mobile map package. https://developers.arcgis.com/qt/cpp/api-reference/esri-arcgisruntime-mobilemappackage.html#MobileMapPackage
... View more
08-26-2022
07:08 AM
|
1
|
0
|
4844
|
|
POST
|
The sample itself deletes the mmpk on exit by use QTemporaryDir. If you modify it to output to a different non-temp location, it won't be deleted.
... View more
08-25-2022
06:35 AM
|
0
|
0
|
1195
|
|
POST
|
@Amitkhillan This is probably worth posting in the Android space as they may have a better idea what is going on
... View more
08-24-2022
08:20 AM
|
0
|
1
|
4016
|
|
POST
|
You can create a MMPK in Pro. You can also generate one on-demand from a web map using our OfflineMapTask. This sample demonstrates how to do this https://github.com/Esri/arcgis-runtime-samples-qt/tree/main/ArcGISRuntimeSDKQt_CppSamples/Maps/GenerateOfflineMap
... View more
08-24-2022
08:18 AM
|
0
|
0
|
3661
|
|
POST
|
The data is available for download on ArcGIS Online. Details are in the sample readme - https://github.com/Esri/arcgis-runtime-samples-qt/tree/main/ArcGISRuntimeSDKQt_CppSamples/Maps/OpenMobileMap_MapPackage#offline-data
... View more
08-08-2022
07:56 AM
|
0
|
0
|
3682
|
|
POST
|
Yes, it's definitely possible. The actual C++ back end code will be nearly identical. You can disregard the QML portions of the samples, as those are just the UI - you'd use Qt Widgets for your UI instead.
... View more
08-01-2022
07:42 AM
|
0
|
0
|
3709
|
|
POST
|
CalloutData contains all of the information about where to display the view (screen point) and what to display in the view (title, detail, image, etc). This will be applicable whether using Qt Quick and Qt Widgets. The piece that is missing for Widgets is the actual view. In Qt Quick, we use QML Shapes to draw the actual view. We used to use a QML Canvas before Shapes was introduced. For Widgets, I don't have any specific recommendations at this point, as we haven't prototyped anything yet. Perhaps you could use QPainter or something along those lines?
... View more
07-27-2022
08:34 AM
|
0
|
0
|
2264
|
|
POST
|
We don't have specific Widgets samples for these, but we have C++ Qt Quick samples. The actual code to perform these is nearly identical (the only difference between Widgets and Qt Quick is MapQuickView and MapGraphicsView class). Offline map on demand - https://github.com/Esri/arcgis-runtime-samples-qt/tree/main/ArcGISRuntimeSDKQt_CppSamples/Maps/GenerateOfflineMap Preplanned offline map - https://github.com/Esri/arcgis-runtime-samples-qt/tree/main/ArcGISRuntimeSDKQt_CppSamples/Maps/DownloadPreplannedMap Load mobile map package - https://github.com/Esri/arcgis-runtime-samples-qt/tree/main/ArcGISRuntimeSDKQt_CppSamples/Maps/OpenMobileMap_MapPackage Get coordinates from mouse click - connect to the mouse clicked signal (https://developers.arcgis.com/qt/cpp/api-reference/esri-arcgisruntime-mapgraphicsview.html#mouseClicked) and then call screenToLocation to convert the screen point to map point https://developers.arcgis.com/qt/cpp/api-reference/esri-arcgisruntime-mapview.html#screenToLocation
... View more
07-27-2022
07:22 AM
|
0
|
0
|
3734
|
|
POST
|
Yes, this is still the case. I think you have a few options: * Build your own Callout in Widgets. This could use the CalloutData class still to determine where to draw the callout and what it should display. https://developers.arcgis.com/qt/cpp/api-reference/esri-arcgisruntime-calloutdata.html * Use a TextSymbol to display text at a given location https://developers.arcgis.com/qt/cpp/api-reference/esri-arcgisruntime-textsymbol.html
... View more
07-25-2022
07:32 AM
|
1
|
2
|
2283
|
|
POST
|
We don't have a client side API at the moment, so you'll need to set it in the web map.
... View more
06-21-2022
07:29 AM
|
0
|
1
|
1724
|
|
POST
|
Hello, Sounds like you were able to get Linux and Windows working? For Mac, it gets a little bit trickier. Have you run the macdeployqt script (described here https://doc.qt.io/qt-5/macos-deployment.html)? Generally to build our sample viewers for mac, our workflow is: build the app, run macdeployqt script, copy in the remaining dylibs (EsriCommonQt, runtimecore), and run `install_name_tool -change` on them/the app executable so the exe looks in the app bundle for the libs and not elsewhere. This step is necessary because the dylibs contain references to the library dependencies with specific paths - you can double check the references with `otool -L`. Hopefully this gets you on the right track
... View more
05-23-2022
07:59 AM
|
0
|
0
|
1800
|
|
POST
|
The static libraries will be compiled into your application, and the libEsriCommonQt.so and libruntimecore.so shared libraries need to be in your application's path. The easiest way to do this is to place the shared libraries that your app depends on next to the executable. I'd recommend referencing the sample applications we have as a starting point. You can inspect the libraries there and replicate the structure/required libs in your app: https://www.arcgis.com/home/search.html?t=content&q=tags%3A%22CppSampleViewer%22
... View more
05-17-2022
07:17 AM
|
1
|
0
|
1827
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 11-24-2025 10:45 AM | |
| 1 | 07-30-2025 08:26 AM | |
| 1 | 05-15-2025 07:35 AM | |
| 2 | 11-26-2024 01:27 PM | |
| 1 | 06-26-2015 10:19 AM |
| Online Status |
Offline
|
| Date Last Visited |
Tuesday
|