Qt QCheckBox

发布时间 2024-01-06 21:04:28作者: 西北逍遥

 

QCheckBox* indexCheckBox = new QCheckBox();
connect(indexCheckbox,SIGNAL(stateChanged(int)),this,SLOT(slotStateChangedAction(int)));

 

void slotStateChangedAction(int indexState)
{
    if(indexState==Qt::Checked)
    {
        
    }else{
    
    }
}

 

 

 

########################