[Development] Suggestion: how to know when object is scheduled for deletion
Filippo Cucchetto
filippocucchetto at gmail.com
Fri May 6 15:32:27 CEST 2016
Yep correct
2016-05-06 1:01 GMT+02:00 Thiago Macieira <thiago.macieira at intel.com>:
> 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
>
> _______________________________________________
> Development mailing list
> Development at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/development
>
--
Filippo Cucchetto
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20160506/69dbd394/attachment.html>
More information about the Development
mailing list