Thank you for the replies.
@wysota : QML which we are reading is from Third party/Client. So we are not sure, what object name it contains.
@anda_skoa : You have mentioned that "children added in the file using the type come last". If I am looping through the child objects of Root QML(Main.qml), how I will identify that child is from Main.qml
QObjectList listOfChildren = rootObj->children();//Root object of Main.qml
int i = 0;
for(i = 0; i < listOfChildren.count(); i++)
{
QObject* child = listOfChildren.at(i);
QString objName1 = child->objectName();
QString classType1 = child->metaObject()->className();
if()//What condition I have to give to check child added in Main.QML
{
}
}
Thanks and Regards,
Hari Krishnan.EL
Bookmarks