movetothread
thread=new qthread
this. move to thread(thread)
timer. movetothread(thread)如果不写这句,那么timer的信号发送是不会被阻塞的,导致信号累积,thread不会退出。
其实就是用的时候要注意一下
thread. start()
thread. quit()
thread. wait()
delete thread
信号 谁创建在谁的线程
槽函数 一样,除非用movetothread