#include QTimer *timer=new QTimer; connect(timer, &QTimer::timeout, this, [&伏唤](){ //5秒调用一次,想干缺神凯啥都行 //假设按钮瞎唤是pushButton pushButton->click(); }); timer->start(5000);