[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
work:
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,
tim
[1]
https://qt.gitorious.org/qt/qtbase/source/db9abc72ef6e374257e00c9553104584b973458a:examples/widgets/mac/qmacnativewidget/main.mm
More information about the Interest
mailing list