[Qt-interest] QList, copy problems

Till Oliver Knoll till.oliver.knoll at gmail.com
Sat Oct 15 12:06:44 CEST 2011



Am 15.10.2011 um 07:07 schrieb Sahana Bhaskar <Sahana_Bhaskar at infosys.com>:

> Any inputs will be appreciated. If I use operator= any modifications to the original list( after initializing ) is causing a crash!!!

Ouch! = does only a shallow copy! In your case you might need a deep copy however!

Cheers, Oliver


More information about the Qt-interest-old mailing list