[Qt-interest] Does QMainWindow::setCentralWidget(QWidget *) destroy the old central widget?
Kermit Mei
kermit.mei at gmail.com
Fri Feb 27 19:03:10 CET 2009
Hello, I have more then three Widgets, and they monopolizes the whole
MainWindow separately during different duration.
My idear is to use setCentralWidget() set them as central widget of the
MainWindow when I need.
The widgets are QWidget's sub-classes, and they are all controlled as
pointer. When I set another widget as central widget of the mainwindow,
I found that the old Central Widget will be destroyed automatically.
Is there any better way to do it?
Thanks.
More information about the Qt-interest-old
mailing list