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

Add C++11 initializers list support to QJsonArray and QJsonObject

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • P3: Somewhat important
    • 5.4.0
    • 5.0.0 Beta 1, 5.0.0 RC 1, 5.0.0
    • None

    Description

      Please add constructor that takes C++11 initializers list to both QJsonArray and QJsonObject. Something like:

      QJsonArray(std::initializer_list<QJsonValue> args)

      and

      QJsonObject(std::initializer_list<std::pair<QString,QJsonValue>> args)

      Attachments

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

        Activity

          People

            nierob Nierob
            stephenju Stephen Chu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes