PDA

View Full Version : send structure data through drag QMimeData



wagmare
6th May 2015, 06:51
Hi friends,

I have to perform drag and drop between different views (different scene also) , so i have to copy the content of one scene to other . the copy item will have lots of details ( about a six memeber in a structure) .
i can pass data as QByteArray, pixmap and html but is it possible to sent it as a structure itself .?

please help me ,
Thanks in advance

wysota
6th May 2015, 07:42
As long as you work within a single app, you can even pass a pointer to an object. However it is wider to provide proper serialization of your data using QDataStream.