I would like to use the new signal slot syntax, as in this example
connect(sender, &Sender::valueChanged,
receiver, &Receiver::updateValue );
I implemented this as
connect(ui->doubleSpinBoxExposure, &QDoubleSpinBox::valueChanged,
this, &WidgetCameraParameter::on_doubleSpinBoxExposure_valueChanged );
This however throws this error
error: no matching function for call to 'WidgetCameraParameter::connect(QDoubleSpinBox*&, , WidgetCameraParameter*, void (WidgetCameraParameter::*)(double))' this, &WidgetCameraParameter::on_doubleSpinBoxExposure_valueChanged );
The classic connect works
connect(ui->doubleSpinBoxExposure, SIGNAL(valueChanged(double)),
this, SLOT(on_doubleSpinBoxExposure_valueChanged(double)));
The connecSlotsByName also does not work
QMetaObject::connectSlotsByName: No matching signal for on_doubleSpinBoxExposure_valueChanged(double) [Warning] 07-09-2018, 08:18; Thread: 0xcfdea0; ;
I would like to understand the reason for this error and warning messages.