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)
东西比较简单直接看代码
标签:Qt,comboBox,信号,connect,QOverload,重载 From: https://www.cnblogs.com/yangjinghui/p/17471497.html