C++ (Qt) QList<QWidget*> l = this->findChildren<QWidget *>(); for (auto& w : l) w->setToolTip(tr("test"));