Hi,
I have list of objects(made of QObject – myList<myObject>).
For some reasons user may be want to modify this list or maybe he/she want to cancel the modifications.
The solution which has came into my mind is to make a copy of my list and give it to user while keeping original one.
so whenever user modify copied list, i have original list so i can change it or revert it based on what user wants.
But the problem is that the objects are made of QObject, so they can not be copied(Copy constructor and
assignment have disabled in qobject)!!! I don’t know what else to do?!
If i define myObject as pointers then i can’t copy the list because they have defined as pointer
Thanks if someone can help me through this. or may be i can use another approach?