[Qt-interest] QMainWindow centralWidget issue..
Nikos Gerontidis
geronik444 at gmail.com
Fri Jan 29 10:42:38 CET 2010
Hi list,
I create 2 widgets and *append* them in a *QList* object, which is a member
of
my *CustomMainWindow* class. While in run time, I set the central widget
with the *setCentralWidget(QWidget*)* function. My application crashes when
I
set twice the same widget as a central widget.
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.
Any ideas? Thanks in advance.
--
Best Regards
Nikos Gerontidis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100129/e79c6749/attachment.html
More information about the Qt-interest-old
mailing list