QObject::connect(ui.pushButton, static_cast<void(QPushButton::*)(bool b)>(&QPushButton::clicked),
[=](bool b) { this->on_pushButton_clicked(b); });
使用匿名函数绑定重载信号槽
于 2020-06-06 19:47:46 首次发布
QObject::connect(ui.pushButton, static_cast<void(QPushButton::*)(bool b)>(&QPushButton::clicked),
[=](bool b) { this->on_pushButton_clicked(b); });