connectui-mode SIGNALcurrentIndexChangedconst QString& this SLOTon_modeComboBox_currentIndexChangedconst QString&;用lambol形式写
ui->mode->connect(ui->mode, &QComboBox::currentIndexChanged, this, [this](const QString& mode){ on_modeComboBox_currentIndexChanged(mode); });
原文地址: http://www.cveoy.top/t/topic/izAA 著作权归作者所有。请勿转载和采集!