QList<T> QObject::findChildren ( const QString & name = QString() ) const Returns all children of this object with the given name that can be cast to type T, or an empty list if there are no such objects. An empty string matches all object names. The search is performed recursively. The following example shows how to find a list of child QWidgets of the specified parentWidget named widgetname: QList<QWidget *> widgets = parentWidget.findChildren<QWidget *>("widgetname"); This example returns all QPushButtons that are children of parentWidget: QList<QPushButton *> allPButtons = parentWidget.findChildren<QPushButton *>();
Несмотря на описание, вызов findChildren<QWidget *>("") выдаёт не ВСЕ виджеты, а виджеты с ПУСТЫМИ именами. Мне нужны ВСЕ. Что делать?
