[Qt-interest] QMainWindow centralWidget issue..
R. Reucher
rene.reucher at batcom-it.net
Fri Jan 29 10:50:13 CET 2010
Nikos Gerontidis wrote:
> Is it a problem related to the fact that QMainWindow takes ownership
> of the widget, when this widget is being set as a central widget.
I'd say yes... as stated in the docs, it not only takes ownership of the
widget pointer, but also deletes it at "the appropriate time" (no time is
appropriate if it's a pointer the same object).
Simply put: don't do that :)!
HTH, René
--
René Reucher
rene.reucher at batcom-it.net
http://www.batcom-it.net/
Don't change the reason, just change the excuses!
-- Joe Cointment
More information about the Qt-interest-old
mailing list