Trolltech Home | Qt-jambi-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-jambi-interest Archive, September 2007
Garbage collection and dispose()


Message 1 in thread

Hi,

I am reading conflicting information about when to use dispose() and when
this is not necessary. The jambi demo code contains several dispose()
calls, however the whitepaper claims, that this is not necessary (even
for top level widgets). In this mailing list it once was claimed, that it is
necessary for top level widgets.

So what is the truth ? Under which circumstances is dispose() necessary. 
When it is desirable (for efficiency reasons) ? Do I need to
build up a complete widget tree, where all widgets are connected by
parent-child relation ? Any help is appreciated...

     Stephan