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

QJsonDocument::fromVariant(QVariantHash)

XMLWordPrintable

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

      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.

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

            allan.jensen Allan Sandfeld Jensen
            jirauser12523 user-66e65 (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes