Hello community,
I'm using AppStudio 5.4 and the 5.4 Map Viewer template connected to a secured ArcGIS Enterprise Web Map.
I've written some custom QML code to do a statistical query on one of the layers. This test query should return the count for each type of "maintenanceClass".
Because the statistical query failed, I decided to test a similar query to simply return features. This worked fine.
My question is - How does one properly use the queryStatistics method when using a web map layer?
Notes:
using Qt Creator 5.0.2
using Esri.ArcGISRuntime 100.14
queryFeatures works fine
queryStatistics fails
fail message is: QObject::connect: Cannot queue arguments of type 'std::shared_ptr<QRTImpl::StatisticsQueryResultImpl>'(Make sure 'std::shared_ptr<QRTImpl::StatisticsQueryResultImpl>' is registered using qRegisterMetaType().)
statistical query based on Esri example https://developers.arcgis.com/qt/qml/sample-code/statistical-query-group-sort/
layer Supports Advanced Queries: true
layer Supports Statistics: true
layer Use Standardized Queries: true
Code snippet attached.
I'm developing in Windows and targeting iOS.
Anyone have any ideas?
Thanks