[Qt-interest] QList: Force a deep copy?

Eric Clark eclark at ara.com
Mon Jun 29 23:31:42 CEST 2009


How come the detach function is not in the documentation?

From: Scott Aron Bloom [mailto:Scott.Bloom at sabgroup.com]
Sent: Monday, June 29, 2009 4:27 PM
To: Eric Clark; qt-interest at trolltech.com
Subject: RE: [Qt-interest] QList: Force a deep copy?

List x = y;
x.detach()

Should do it.

Scott

From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Eric Clark
Sent: Monday, June 29, 2009 2:25 PM
To: qt-interest at trolltech.com
Subject: [Qt-interest] QList: Force a deep copy?

Hello All,

Is there a way to force a QList to do a deep copy and not a shallow copy?

Thanks,
Eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090629/5f23b662/attachment.html 


More information about the Qt-interest-old mailing list