我想用一些 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)。你知道我该怎么做吗?