我想用一堆 QActions 和 QMenus 覆盖 mouseReleaseEvent ......
connect(action1, SIGNAL(triggered()), this, SLOT(onStepIncreased()));
connect(action5, SIGNAL(triggered()), this, SLOT(onStepIncreased()));
connect(action10, SIGNAL(triggered()), this, SLOT(onStepIncreased()));
connect(action25, SIGNAL(triggered()), this, SLOT(onStepIncreased()));
connect(action50, SIGNAL(triggered()), this, SLOT(onStepIncreased()));
所以我想向插槽传递一个参数onStepIncreased
(你可以想象它们是 1、5、10、25、50)。你知道我该怎么做吗?