定义写的有问题myAction::myAction(QObject *parent) : QWidgetAction(parent){}改为myAction::myAction(QWidget *parent) : QWidgetAction(parent){}