当前位置:网站首页>The reason why the qtimer timer does not work

The reason why the qtimer timer does not work

2022-06-24 08:30:00 Pepsi__

At first I wrote this

	QTimer timer;
    timer.start(1000);
    connect(&timer,SIGNAL(timeout()),this,SLOT(func1()));

And that's how it works

	QTimer *timer = new QTimer;
    timer->start(1000);
    connect(timer,SIGNAL(timeout()),this,SLOT(func1()));
原网站

版权声明
本文为[Pepsi__]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/175/202206240558136761.html