deleteLater

Vladimir Prus ghost at cs.msu.su
Tue May 6 08:20:40 UTC 2008


On Tuesday 06 May 2008 12:09:23 Andras Mantia wrote:
> On Tuesday 06 May 2008, Vladimir Prus wrote:
> > Can somebody give me a concrete use case where using deleteLater,
> > *here* might fix a *real* problem? It seems highly unlikely that the
> > ::close method will *ever* be called, directly or indirectly, from
> > within view.
> 
> Usually use deleteLater in slots connected to an object from where the 
> signal is emitted, so the caller is not deleted before the eventloop is 
> re-entered.

Sorry, I'm asking about concrete code. I get the impression that deleteLater
is used in some places to plaster over design issues.

- Volodya





More information about the KDevelop-devel mailing list