When I used connect() to connect a &QRadioButton::toggled signal with a void-return type function, all went well:
QRadioButton *radioCrack = new QRadioButton;
QObject::connect(radioCrack, &QRadioButton::toggled, updateCeasarCrack);
My function (which is placed above):
void updateCeasarCrack()
{
cerr << "done";
}
But when I tried to do the same for &QSpinBox::valueChanged:
QSpinBox *keyBox = new QSpinBox;
QObject::connect(keyBox, &QSpinBox::valueChanged, updateCeasarCrack);
I got an error:
error: no matching function for call to 'connect'
Full error image :
Did I misunderstood something with the way connect() work? I've tried googling and came up with this, but it doesn't seem to fix the issue.
