I've tried integrating ArcGIS into my application in Qt.
I am using QDockWidgets to display the map.
I have tried using both C++ and QML to display the maps but both versions are rather buggy when it works with QDockWidgets.
Note : I need to use both ArcGIS map and OSM for my project where I need to switch between the two.
There is a mode switcher, meaning all my maps in QML will display either OSM (in OSM mode) and ArcGIS (in ArcGIS mode) and not both at the same time. If I were to create a new QDockWidget, the map will display according to the current mode.
In QML :
- I create a QDockWidget in ArcGIS mode. I switch to OSM mode. I create a new QDockWidget. I switch back to ArcGIS mode. Program crashes. [It sometimes takes a multiple new QDockWidget to create to crash].
- According to the log, whenever I open 2 QDockWidgets in ArcGIS mode or more and close application, it states that the application crashes and does not close successfully.
In C++ :
-If I use QGraphicsDropShadowEffect enabled with the QDockWidget, the map will not display. I need to display a shadow effect.
-The map will stop being displayed when the QDockWidget is undocked from the window.
These issues does not occur when I use OSM. I hope someone is able to guide me along to rectify this issues.
Here is the link to my project :
GitHub - haikalsyed/QDockWidgetArcGIS