Details
-
Suggestion
-
Resolution: Out of scope
-
Not Evaluated
-
None
-
None
-
None
-
any
Description
There is an operation to copy an arbitrary QMetaType-registered object into a QVariant using its meta-type id and its void* address:
QVariant::QVariant(int typeId, const void *copy)
I could not find, how to do the opposite operation. I expected something like the following to exist:
QVariant::value(void *ptr, int typeId)
which would copy the object stored in QVariant into another object of the same meta-type allocated at address ptr.
There are more details in my post: http://qt-project.org/forums/viewthread/35801