[Qt-interest] Qt signaling smarts...

Gordon Schumacher gordon at rebit.com
Tue Nov 24 17:36:46 CET 2009


Mark Long wrote:
> Gordon Schumacher wrote:
>   
>> In fact, I'd go so far as to say "don't delete a QObject, use
>> safeDelete() instead".  It's overstating it, but it'll save your hair
>> when you someday start using your shiny new class in a multi-threaded
>> application...
>>     
>
> Do you mean QObject::deleteLater()?
>   

Ack, yes.  I should not be posting this early :)

(safeDelete is a template I wrote to "do the right thing" whether you're
dealing with a QObject, an MFC CObject, or a normal C++ object...)



More information about the Qt-interest-old mailing list