QObject::findChildren() can find all children of a given type, it does not require a name as explained and demonstrated in the docs:
Omitting the name argument causes all object names to be matched. The search is performed recursively.
and
This example returns all QPushButtons that are children of parentWidget:
Qt Code:
  1. QList<QPushButton *> allPButtons = parentWidget.findChildren<QPushButton *>();
To copy to clipboard, switch view to plain text mode 
In your case you want all QWidgets.