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

QJsonValueRef: missing toVariant()

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 5.4.0
    • Fix Version/s: None
    • Component/s: Core: Other
    • Labels:
      None

      Description

      QJsonValueRef lacks the toVariant function of QJsonValue.
      Thus the following code does not compile.

      QJsonArray array;
      for (auto it: array) {
         QVariant foo = it.toVariant();
      }
      

        Attachments

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

          Activity

            People

            Assignee:
            laknoll Lars Knoll
            Reporter:
            martinpley Martin Pley
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes