Serialize pointers into a byte array and pass that into QMimeData. However usually it would be better to serialize the data behind the pointers instead.
Could you give me an example of serializing pointers into QByteArray?
Convert them into integers and store in the array directly or using QDataStream.
Seishin (2nd May 2013)
You might find quintptr useful for the static cast.
Seishin (2nd May 2013)
Even if it is possible to do that (seralizing pointers into a text representation) I suggest you stay away from it as far as possible (as in: don't do it at all).
This is an extremly bad hack, requires reinterpret_cast, has no runtime safety at all, and so on.
If you need access to the same list in multiple locations in your program, do it in a way that is independent of drag&drop. E.g. as a member in an object that both locations have access to, or in a singleton, etc.
Cheers,
_
Bookmarks