适用于槽函数逻辑较简单无须单独列出的情况: 12345QTimer* timer = new QTimer(this);connect(timer, &QTimer::timeout, [ = ](){ //TODO}); 或 1234QTimer::singleShot(300, this , [ = ]{ //TODO}); # Qt# 信号槽