[Development] Suggestion: how to know when object is scheduled for deletion

Thiago Macieira thiago.macieira at intel.com
Fri May 6 01:01:06 CEST 2016


On quinta-feira, 5 de maio de 2016 22:21:08 PDT Filippo Cucchetto wrote:
> void invokeDeleteLater(QObject* other) {
>     other->deleteLater();
>     emit aboutToBeDeleted(other)
> }

You want the emit before the deleteLater(), if the object can be in another 
thread.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Development mailing list