[Qt-interest] QObject::deleteLater and private event loop (not using QCoreApplication::exec())

Thiago Macieira thiago at kde.org
Fri Jun 10 11:50:27 CEST 2011


On Friday, 10 de June de 2011 11:41:04 Zeljko wrote:
> > DeferredDelete events are only handled at the same loop nesting level
> > that they were created in or less deep nesting. They are never handled
> > by deeper nesting levels.
> 
> Yes,I've understood that part about nesting level, but do I need to do
> something special when obj->deleteLater() or qt handles it by it self
> (deletes object) when somewhere in same loop processMessages() is called ?
> Again: I'm using my own event loop.

Qt will delete when you exit your own loop and go back to the original level.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110610/3d3852e2/attachment.bin 


More information about the Qt-interest-old mailing list