diff --git a/src/ui/form/controls/controlutil.cpp b/src/ui/form/controls/controlutil.cpp index 44fc1069..08e72bdf 100644 --- a/src/ui/form/controls/controlutil.cpp +++ b/src/ui/form/controls/controlutil.cpp @@ -3,6 +3,7 @@ #include #include #include +#include #include #include #include @@ -192,7 +193,7 @@ void ControlUtil::relayoutMenu(QMenu *menu, QAction *action) } QActionEvent e(QEvent::ActionChanged, action); - qApp->sendEvent(menu, &e); + QCoreApplication::sendEvent(menu, &e); } QBoxLayout *ControlUtil::createLayoutByWidgets(const QList &widgets, Qt::Orientation o)