C++ (Qt)QList <QAction *> lst = mBar->actions();for (int i = 0; i < lst.size(); ++i) { QActionEvent event(QEvent::ActionChanged, lst[i]); QApplication::sendEvent(mBar, &event);}