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

Add T& QVariant::valueRef<T>

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P2: Important
    • None
    • Some future release
    • Core: Other
    • None

    Description

      I'd like to be able to directly manipulate values stored inside a QVariant, whithout having to copy the value in and out. For that, it would be cool if QVariant could expose a valueRef version of value, that returns a T& instead of a T. This would make cases where copying the value is expensive faster.

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            andre André Somers
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes