我想使用新的信号槽语法,如本例所示
undefined
我将其实现为
connect(sender, &Sender::valueChanged,
receiver, &Receiver::updateValue );
这会引发此错误
错误:没有匹配函数可用于调用'WidgetCameraParameter :: connect(QDoubleSpinBox *&,,WidgetCameraParameter *,void(WidgetCameraParameter :: *)(double))' 这个&WidgetCameraParameter :: on_doubleSpinBoxExposure_valueChanged);
经典连接有效
connect(ui->doubleSpinBoxExposure, &QDoubleSpinBox::valueChanged,
this, &WidgetCameraParameter::on_doubleSpinBoxExposure_valueChanged );
connecSlotsByName也不起作用
QMetaObject :: connectSlotsByName:没有匹配信号on_doubleSpinBoxExposure_valueChanged(double) [警告] 07-09-2018,08:18;线程:0xcfdea0; ;
我想了解此错误和警告消息的原因。