Try giving only QString as an argument and also for passing any parameters to a slot you need to use QSignalMapper.
Here : QSignalMapper
connect (any_action, SIGNAL(triggered()), map1, SLOT(map())) ;
map1-> setMapping (any_action, 1) ;//one is argument being passed
connect (map1, SIGNAL(mapped(int)), this, SLOT(onStepIncreased(int))) ;
QSignalMapper* map1= new QSignalMapper (this) ;
connect (any_action, SIGNAL(triggered()), map1, SLOT(map())) ;
map1-> setMapping (any_action, 1) ;//one is argument being passed
connect (map1, SIGNAL(mapped(int)), this, SLOT(onStepIncreased(int))) ;
To copy to clipboard, switch view to plain text mode
Bookmarks