8.2.1.  Finding Children

[ fromfile: children.xml id: findchildren ]

QList<T> parentObj.findChildren<T> ( const QString& name = QString() ) const

Example 8.1. src/findchildren/findchildren.cpp

[ . . . . ]
/* Filter on Customer* */
    QList<Customer*> custlist = parent.findChildren<Customer*>();
    foreach (const Customer* current, custlist) {
        qDebug() << current->toString();
    }
[ . . . . ]



[37] Section 19.7 discusses type conversion and casting.