qt-slot- все статьи тега ➜ страница 0
Передача аргумента в слот
Я хочу переопределить mouseReleaseEvent с кучей QActions и QMenus... 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 (Как вы можете ...