QT ArcGIS SDK, QML and C++ objects interoperability.

06-12-2015 12:15 AM
New Contributor II

Hello anybody,

I'm implementing mobile viewer for our Geographic Information System (GIM gim.tahal-gal.com/gim2xu/). Some things I thought to move to C++ level, but I met the fact that I can't use in C++ code objects created in QML. Why? Why natural interoperability of QT QML is broken in QT SDK?
I spend few days to understand the problem when I found this this thing in SDK release note:
"Interoperability between identical object instances from both the C++ and QML APIs is not supported. For example, passing a Point geometry object from QML to C++ and performing geometry operations on that Point in C++ is not supported."

Why I can't cast QML Layer to C++ Layer? It is the same objects!!!!
Is this commercial or technical issue?

Alex Merkulov

Tags (1)
0 Kudos
2 Replies
Esri Frequent Contributor

Hey Alex-

The QML API wasn't originally architected in a way to let you do this, so it is a technical limitation as of now. The C++ objects and QML objects are in fact not actually the same objects under the hood. We are looking at supporting this in the future, but for now, you will need to use the Runtime API in either C++ or QML.



New Contributor II

Thanks Luke, I got it

0 Kudos