Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in
read-only mode
.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
time2->setInterval(2000);
time2->moveToThread(timethread);
connect(timethread,&QThread::finished,time2,&QTimer::deleteLater);
connect(time2,&QTimer::timeout,[=]{
Widget::ontime_1();
timethread->start();
time2->start();
time2启动不了