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

QJsonDocument::fromVariant(QVariantHash)

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • P3: Somewhat important
    • 5.8.0 Alpha
    • 5.4.0 Alpha
    • Core: Other
    • None

    Description

      According to the docs QJsonDocument::fromVariant() supports only QVariantMap, QVariantList and QStringList as input. Why does it not support a QHash<QString, QVariant> ? Using a QHash is more efficient when one has to work with many elements, converting it to a map just to use it with fromVariant() is bothersome.

      Attachments

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

        Activity

          People

            allan.jensen Allan Sandfeld Jensen
            binblob D
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes