Can we load mapview without using QML in .UI QT Applications?
We have one existing application in which we want to integrate this map view functionality...
Hi Girishchandra,
Yes this is possible. You can do this by adding a QGraphicsView to the *.ui file in Qt designer, then promoting the QGraphicsView widget to a MapGraphicsView.
First drag and drop the Graphics View widget from the Widget box into your form.
The right click on the widget and select `Promote to...`
In the `Promoted Widgets` window, fill out the form as follows.
Base class name: QGraphicsView
Promoted class name: Esri::ArcGISRuntime::MapGraphicsView
Header file: MapGraphicsView.h
Global include: true
Then click `Add`, then click `Promote`, then click `Close`.
In the Object Inspector view, the widget you added should now look something like this:
The map view is now part of your *.ui file.
Hope this helps!
MapGraphicsView.h No such file or directory error...
Hi Girishchandra,
How are your *.pro and *.pri files setup?
Take a look into Integrating the SDK into an existing app.
Please make sure that you are including esri_runtime_qt.pri
specifically, and not one of the other QML includes.
Hope this helps!
I followed the steps but I am getting below error,
E:\ProgramFiles\ArcGIS_SDK_Qt\qt100.3\sdk\include\Credential.h:27: error: C1083: Cannot open include file: 'QSslConfiguration': No such file or directory