[Interest] QMacNativeWidget & memory management

Tim Blechmann tim at klingt.org
Mon Dec 9 13:33:25 CET 2013

hi all,

trying to embed a Qt widget hierarchy into a Cocoa hierarchy, i'm
currently trying to figure out how the memory management is supposed to

i've adapted the example [1] to add a RedWidget to the layout. it gets
allocated in the applicationDidFinishLaunching method, but for some
reason it is never destroyed. so i wonder, is this a bug or a feature?
or more generally speaking: will the QMacNativeWidget automatically be
destroyed when its parent NSView* is destroyed? if not, what is the
preferred way to make sure that it is destroyed correctly?

thanks in advance,


More information about the Interest mailing list