Details
-
Suggestion
-
Resolution: Done
-
P3: Somewhat important
-
5.4.0 Alpha
-
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
For Gerrit Dashboard: QTBUG-39751 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
165006,4 | Handle QVariantHash in QJsonDocument::fromVariant | dev | qt/qtbase | Status: MERGED | +2 | 0 |