There are a number of ways to get started to develop with ArcGIS Maps SDK for Qt. If you are new, follow the steps below to get started with Qt and Qt Creator.
1. Sign up for an account
To use ArcGIS Maps SDK for Qt to access content
If you do not have an account, select one of the options below:
To join an existing ArcGIS organization, request an account from your ArcGIS Online
2. Get the SDK and dependencies
The ArcGIS Maps SDK for Qt has APIs for developing desktop apps for Windows, Linux, and macOS. Mobile apps can be developed for iOS and Android. You can install this SDK on Windows, macOS, and Linux. For a full discussion for the various development configurations, see the Install and set up topic.
The following describes the abbreviated steps to develop Windows desktop apps (this is the most common option for developers new to the ArcGIS Maps SDK for Qt), you need to:
-
Ensure that your Windows development environment meets the system requirements (ex: Windows 11 (64-bit) version 21H2).
-
Install a supported Microsoft Visual Studio C++ compiler (ex: MSVC2022 C++ x64 build tools) that is provided as part of a Visual Studio Build Tools 2022 installer.
-
Run the Qt installer available from the Qt Group and install the latest Qt Framework (ex: version 6.8.2 or higher) and the Qt Creator IDE (ex: version 18.x or higher)
-
Download the latest version of the ArcGIS Maps SDK for Qt (ex: version 300.x) from the downloads page.
-
Follow the instructions in the Install and set up document to install the ArcGIS Maps SDK for Qt on your operating system.
-
Optionally clone the ArcGIS Maps SDK for Qt Toolkit GitHub repo. The toolkit contains user interface (UI) controls and components that you can to use out-of-the-box or customize them to suit your needs.
3. Choose a type of authentication
To access secure ArcGIS services and resources, you need to implement authentication. The easiest way to get started is to obtain an access token
4. Create your first mapping application
Follow step-by-step instructions in the Display a map tutorial to create your first mapping application. The following snippet shows the main code in the tutorial to display a map:
Highlights from that tutorial (C++ version) include the following code snippets:
-
Setting the API Key, in the
main.cppfile:const QString accessToken = QString(""); -
Creating a map from an ArcGIS basemap, in the
Display_a_map.cppfile:Display_a_map::Display_a_map(QObject* parent /* = nullptr */):QObject(parent),m_map(new Map(BasemapStyle::ArcGISTopographic, this)) -
Adding the map to the map view control, the
Display_a_map.cppfile:m_mapView->setMap(m_map);
Once you are done building your application, make sure to license it before deploying to production. For more information, see License and deployment topic for details.
5. Find more tutorials
Go to the tutorials to create and run applications to perform different operations.
Display a web map
Display a preauthored map stored as an ArcGIS Online portal item.
Add a point, line, and polygon
Learn how to display a point, line, and polygon graphic in a map.
Access services with OAuth credentials
Learn how to implement user authentication to access a secure ArcGIS service with OAuth credentials.
6. Explore the samples
Go to the samples to learn how to perform more tasks with the API.
Display a map
Display a map with an imagery basemap.
Display a scene
Display a scene with a terrain surface and imagery.
Display device location
Display your current position on the map, as well as switch between different types of auto pan modes.
Find an address
Find the location for an address.
Find route
Display directions for a route between two points.