1、给timeout()添加槽函数 添加槽函数时需要显式连接,这时不能将函数名命名为on_控件名_信号,否则就会报错No matching signal for,因为i这是隐式连接的函数命名方式。 connect(fTimer, SIGNAL(timeout()), this, SLOT(onTimerTimeout()));