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

Scott Aron Bloom Scott.Bloom at sabgroup.com
Mon Jun 29 23:27:25 CEST 2009


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/243a9ce9/attachment.html 


More information about the Qt-interest-old mailing list