Scripting: Naming Application Components - nomovok-opensource/cutedriver-agent_qt GitHub Wiki

Modifying Applications for Scripting

In order to interact with QML/Qt elements, the objects need to be named. Otherwise, cuTeDriver will be unable to locate which object you want to send the gesture to.

In Qt code any objects can be named with:
OBJECT->setObjectName("OBJECT_NAME");

Any QML objects can be named by adding:
objectName: OBJECT_NAME

Once the object naming is in place in your code, you can check it through with the tree element view in cuTeDriver Visualizer.