Instead of using a QSignalMapper, which I think don't suit you(the int is not always the same, you will need to call setMapping each time...), I suggest you simply create an additional slot (void) which will call startIO(currentFreq1). (and simply put startIO private)
So connect the QPushButton::clicked() to the additional slot:
QObject::connect(taStartPB,
SIGNAL( clicked
() ),
this,
SLOT(additionalSlot
());
QObject::connect(taStartPB, SIGNAL( clicked() ), this, SLOT(additionalSlot());
To copy to clipboard, switch view to plain text mode
Then you can call startIO(int) :
void ConfigurationPage::additionalSlot()
{
int currentFreq1 = frequency_ch1_SB->value();
startIO(currentFreq1)
}
void ConfigurationPage::additionalSlot()
{
int currentFreq1 = frequency_ch1_SB->value();
startIO(currentFreq1)
}
To copy to clipboard, switch view to plain text mode
I think it 's a straightforward way, isn't it? 
Hope to be useful...
Bookmarks