Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-35466

bool QVariant::value(void *p, int typeid) would be nice to have

    XMLWordPrintable

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

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            thiago Thiago Macieira
            john.curious John Clause
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes