[Uml-devel] nasty problems with Umbrello
Luis De la Parra Blum
lparrab at gmx.net
Sun Nov 2 10:47:04 UTC 2003
On Thursday 30 October 2003 17:05, Oliver Kellogg wrote:
> A C++ question, is it safe to deconstruct the "this" object
> from within a method of the own class?
> Sounds risky to me...
you could do it if nothing accesses the object after taht, but it is not safe
to do it from within a slot...
if you want to be on the safe side, just call deleteLater() ( inherited from
QObject ) it will sechdule a delete for as soon as the application returns to
the main event loop.
luis
More information about the umbrello-devel
mailing list