C++ (Qt)connect(ui->normalLevelVoltageSpin, static_cast<void (QDoubleSpinBox::*)(double)>(&QDoubleSpinBox::valueChanged), eltek_control_.data(), &EltekControl::setNomalLevelVoltage);