Qt中QCheckBox的按键响应如下,其中checkbox为对象名:
void YourClass::on_checkbox_toggled(bool state) { // Do something here }