QList<QWidget*> l = this->findChildren<QWidget *>(); for (int i=0;i<l.size();i++){ QWidget *w = l[i]; w->setToolTip(tr("test")); }
C++ (Qt) QList<QWidget*> l = this->findChildren<QWidget *>(); for (auto& w : l) w->setToolTip(tr("test"));
QToolButton *lbl = qobject_cast<QToolButton*>(w);
removeTranslator(&translator);installTranslator(&translator);
QList<QAction*> l2 = toolBar->findChildren<QAction *>(); for (auto &x:l2){ x->setText(tr("test")); x->setStatusTip(tr("test")); }
QList<QAction*> l2 = this->findChildren<QAction *>();