Despite the fact that everyone will tell you that you do not have deep copies of Qt containers, there are situations when you just need to make the actual deep copy, not just a shallow one. To do this, use detach() :
container1 = container2; container1.detach();
kralyk
source share