转自https://blog.youkuaiyun.com/huaweijian0324/article/details/80571315
设置一个成员变量定时器指针
重写线程的run方法,
在run里面使用定时器的时候,有两点需要注意:
1:new QTimer()时不能加this;
2:在run()方法里一定要加上this.exec();
转自https://blog.youkuaiyun.com/huaweijian0324/article/details/80571315
设置一个成员变量定时器指针
重写线程的run方法,
在run里面使用定时器的时候,有两点需要注意:
1:new QTimer()时不能加this;
2:在run()方法里一定要加上this.exec();