QT多个相同控件的信号绑定单个槽函数
QCheckBox *oEntityTargetChk = dynamic_cast<QCheckBox*>(sender()); if (oEntityTargetChk == nullptr) { return; } if (oEntityTargetChk == ui->m_wndSmallTargetChk) { }
else if()
{
...
}
QCheckBox *oEntityTargetChk = dynamic_cast<QCheckBox*>(sender()); if (oEntityTargetChk == nullptr) { return; } if (oEntityTargetChk == ui->m_wndSmallTargetChk) { }
else if()
{
...
}