Qt QCheckBox

 

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

 

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

 

 

 

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

posted @ 2024-01-06 20:59  西北逍遥  阅读(4)  评论(0编辑  收藏  举报