返回loop循环时,释放object。
例如:
loop开始之前调用,loop开始时,释放object。
loop循环结束之后调用,不释放object。
Since Qt 4.8, if deleteLater() is called on an object that lives in a thread with no running event loop, the object will be destroyed when the thread finishes
从Qt 4.8开始,如果对没有运行事件循环的线程中,调用deleteLater(),该对象将在线程结束时被销毁
请注意,进入和退出新的事件循环(例如,通过打开模式对话框)不会执行延迟删除;对于要删除的对象,控件必须返回调用deleteLater()的事件循环。