I don't know of this is sensible for Autopilot to use (I haven't seen exactly how it's done there) but for the API tooling I found that QMetaObject can be listed from a QQmlComponent created from QML source code, based on exported type names. The WIP branch for that is https://code.launchpad.net/~ubuntu-sdk-team/ubuntu-ui-toolkit/newJsonApiCheck. This is based on the same way qmlplugindump works behind the scenes.
I don't know of this is sensible for Autopilot to use (I haven't seen exactly how it's done there) but for the API tooling I found that QMetaObject can be listed from a QQmlComponent created from QML source code, based on exported type names. The WIP branch for that is https:/ /code.launchpad .net/~ubuntu- sdk-team/ ubuntu- ui-toolkit/ newJsonApiCheck. This is based on the same way qmlplugindump works behind the scenes.