QtCreator + Qt5.12.2
1 /* 重载信号需要注明 */
2 connect(ui->comboBox_Mode, QOverload<int>::of(&QComboBox::currentIndexChanged),
3 this, [this](int index)
4 {
5
6 });
QOverload<int>::of(signal)
东西比较简单直接看代码
QtCreator + Qt5.12.2
1 /* 重载信号需要注明 */
2 connect(ui->comboBox_Mode, QOverload<int>::of(&QComboBox::currentIndexChanged),
3 this, [this](int index)
4 {
5
6 });
QOverload<int>::of(signal)
东西比较简单直接看代码