QT多个相同控件的信号绑定单个槽函数

    QCheckBox *oEntityTargetChk = dynamic_cast<QCheckBox*>(sender());

    if (oEntityTargetChk == nullptr)
    {
        return;
    }

    if (oEntityTargetChk == ui->m_wndSmallTargetChk) 
    {
      
    }  
   else if()
  {
    ...
  }
posted @ 2020-01-16 14:56  骄傲到自负  阅读(709)  评论(0)    收藏  举报