T QObject::findChild allows you to search through the children a specific object by class and by name :
QPushButton *button = parentWidget->findChild<QPushButton*>("button1",
Qt::FindDirectChildrenOnly);
I need to find a child item like this, by class and name. Something like
MyQQuickItem *item = parentItem->findChildItem<MyQQuickItem*>("item1");
But the function does not exist for QQuickItem.
What's the most convenient/efficient way to achieve this ?
So far I can only think about a loop on the QQuickItem::childItems list.
A similar logic should be implemented as shown below:
Example: