Aaahhh.. Okay... would try to recode the thing again...
As per the copy part of it then i thought this was the copy part ie setting the mime data in the clipboard copies it...
[HTML]
QDataStream ds(*ba);
ds << *m_pCanvasGp;
mime->setData("Canvas Group",&ba);
clipboard->setMimeData(mime,QClipboard::Clipboard);
[/HTML]

And for pasting as u said
Quote Originally Posted by wysota
When a drop (paste) happens the data is retrieved from the transfer object and the destination widget has to do something with it (for example create items which have the same attributes as those described by the data retrieved).
I created another CanvasGroup object and tried to extract the data into it with the following set of commands i.e.
[HTML]
mime2 = clipboard->mimeData(mode);
ba2 = mime->data("Canvas Group");
QDataStream d2(*ba2);
ds2 >> *mpCanvasGp2;
[/HTML]
This was my paste part... now i would have moved the newly created canvasgroup object to a new location to make it happen...

I exactly didnt merge them..it was just a prototype which i had developed to run the entire copy and paste process in the same function to check its validity... when implementing it in a real sense, i would part the two things...

For the operator errors, then i checked with the QDataStream class description and its functions... i just exactly did as per the code sample given by you.. i made no changes from my side..

Would try the thing again afresh... Would try to give it my best shot and disturb you the least.. you have really helped me in coming up with so many solutions.. had this forum not been there, i would have taken ages to do what i have done so far...
Thanks a lot for your help...

with regards,
Kapil