In a class I'm working on, I am juggling several QList
s. I have heard that Qt tries not to make deep copies of lists whenever possible. From what I understand, that means that no deep copy happens when you do this:
QList<int> myList;
myList << 1 << 2 << 3 << 4;
QList<int> otherList = myList; // No deep copy
In some cases, I need to make sure a deep copy never happens to the QList
. Exactly what kind of operation or action do I need to make sure to avoid in order to make sure a deep copy never happens to a QList
I'm working with?