From: interest-bounces+scott.bloom=onshorecs....@qt-project.org [mailto:interest-bounces+scott.bloom=onshorecs....@qt-project.org] On Behalf Of Scott Aron Bloom Sent: Thursday, April 26, 2012 2:46 PM To: Nikos Chantziaras; interest@qt-project.org Subject: Re: [Interest] Help, please !!!
Nope. That was not the issue. The issue was that when you append list A into list B, you can't get to list A because what's inside list B is a copy of A, not A itself. You might want to read again from the first post. _______________________________________________ Nope.. not at all.. The problem is with your testcase Nikos... NOT implicit sharing.. listOfInts.append(10); Expliticly PREVENTS the modification of the listOfInts variable. It takes in a const object reference, Guarenteeing the original will NOT be modified.. And implying that any modification to the original will not effect the copy as well.. Scott _______________________________________________ Also, you will note, none of the append/push_back/insert etc etc methods on QList take in a non-const reference. (or at least none that I found). Scott _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest