使用场景:一大堆lineEdit要更新数据上面10几个QLineEdit,z,只要任意改一个数据我都要把所有数据封装成一个包
connect(ui.radar_name_, &QLineEdit::textChanged, ui.antenna_height, &QLineEdit::textChanged);
connect(ui.antenna_height, &QLineEdit::textChanged, ui.emit_power, &QLineEdit::textChanged);
connect(ui.emit_power, &QLineEdit::textChanged, ui.work_frequence, &QLineEdit::textChanged);
connect(ui.scan_period, &QLineEdit::textChanged, ui.pluse_repetition_frequence, &QLineEdit::textChanged);