[Qt-interest] QSplitter::addWidget() manages widget lifetime ?

Malyushytsky, Alex alex at wai.com
Thu May 14 23:56:40 CEST 2009


It does it in QT 4.4.3 :

if (widget->parentWidget() != q)
        widget->setParent(q);

I would expect it to be that way, but I am not a developer and not the god to guarantee it.

Alex


From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Stephen Collyer
Sent: Thursday, May 14, 2009 8:11 AM
To: qtInterest
Subject: [Qt-interest] QSplitter::addWidget() manages widget lifetime ?

If I add a Qwidget* to a QSplitter via addWidget(), can I assume
that the splitter becomes the parent of the added widget ? The
documentation seems to be silent on this question.

--
Stephen Collyer


---------------------------------------------------------------------------------------------------
Weidlinger Associates, Inc. made the following annotations.

“This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Thank you.”

“Please consider our environment before printing this email.”
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090514/89b8828d/attachment.html 


More information about the Qt-interest-old mailing list