QCheckBox checkBox; connect(&checkBox, &QCheckBox::clicked, [this] { emit this->slot_check_btn(); }); connect(&checkBox, static_cast<void(QCheckBox ::*)(bool b)>(&QCheckBox::clicked), [=](bool b) { emit this->slot_check_btn(b); });