1.run函数结束后,线程结束:QThread是用来控制一个线程的,而不是线程自身。当run()函数结束之后,这个线程就会被终结,但创建的QThread对象仍然存在,且创建的子线程可以循环使用。
2.start()函数可多次调用:QThread只是new出来的一个对象,当调用start()之后,它会新建一个线程,并把run()中的代码放到线程中运行,当运行完成后,线程会结束,但QThread对象还在,所以可再次调用start()函数。
问题:当run函数没有运行完时,再次调用start()会出现什么情况?