qt SIGNAL与SLOT
// 无参数
connect(ui->deflection,
SIGNAL(editingFinished()),
this,
SLOT(deflectionEditingFinished()));
// 有参数
connect(ui->deflection,
SIGNAL(valueChanged(double)),
this,
SLOT(deflectionChanged(double)));
// 无参数
connect(ui->deflection,
&QDoubleSpinBox::editingFinished,
this,
&TestsPanel::deflectionEditingFinished);
// 有参数
connect(ui->deflection,
&QDoubleSpinBox::valueChanged,
this,
&TestsPanel::deflectionChanged);
// 信号有重载函数
// eg. void valueChanged(int);
// oid valueChanged(const QString &);
connect(ui->deflection,
QOverload<double>::of(&QDoubleSpinBox::valueChanged),
this,
&TestsPanel::deflectionChanged);
connect(tSpinBox, qOverload<double>(&QuantitySpinBox::valueChanged), this, &TaskCSysDragger::onTIncrementSlot);