Hi Valheru.
I've looked at your post and your example code as I'm experiencing the same problems as you did. I your post it seems like you've solved the copy problem? I'm fighting to get my copy function to work and I've ended up doing a deep copy by implementing a clone function, like this. I'm using a QMap instead of your QList.
Item Item::clone()
{
Item itm;
QMap<int,QVariant>::const_iterator i = this->constBegin();
while (i != this->constEnd()) {
itm[i.key()] = i.value();
++i;
}
return itm;
}
If it's not too much trouble, will you share with me your solution from above?
Thanks
Bookmarks