I'm new to QT and the arcgis sdk. I've set up my system on Windows 10 and am unable to get a map. The ESRI arcgis sample programs run without any errors, but my mapview is always a grey screen. Reading other posts points to an issue with OpenSSL, but I've reached my expertise limit on what could be wrong with my setup.
To check OpenSSL, I added the following bit of code in main.cpp with the resulting output:
qDebug() << "build-time OpenSSL version:" << QSslSocket::sslLibraryBuildVersionString();
qDebug() << "run-time OpenSSL version:" << QSslSocket::sslLibraryVersionString();
qDebug()<<"QSslSocket="<<QSslSocket::sslLibraryBuildVersionString();
build-time OpenSSL version: "OpenSSL 1.1.1g 21 Apr 2020"
run-time OpenSSL version: "OpenSSL 1.1.1k 25 Mar 2021"
QSslSocket= "OpenSSL 1.1.1g 21 Apr 2020"
Any ideas on what could be wrong with my setup or what to check next would be greatly appreciated. I'm out of ideas.
Solved! Go to Solution.
Hello, and welcome!
Did you setup your API Key for accessing basemaps? https://developers.arcgis.com/qt/get-started/#3-get-an-api-key
Hello, and welcome!
Did you setup your API Key for accessing basemaps? https://developers.arcgis.com/qt/get-started/#3-get-an-api-key
I have not, but was under the impression that it should still work, except I would see "“Licensed for Developer Use Only” on the map until I did have an API key.
Hi Rhett.
The API key grants you access to ArcGIS Platform services, while it's the license string that removes the developers watermark in your app.
In other words, even if you're working in developer mode and see the watermark, you'll still need a suitable API key to access services.
Hope that helps.
Yep, that was the issue. Thanks.