VoltAir
|
Helper template class to convert QVariants to and from QJsonObjects. More...
Public Member Functions | |
QJsonObject | fromVariant (const QVariant &value) |
Returns value converted to a QJsonObject. More... | |
Public Member Functions inherited from VariantConverterBase< QJsonObject > | |
QVariant | toVariant (const QJsonObject &value) |
Returns value converted as a QVariant. More... | |
Helper template class to convert QVariants to and from QJsonObjects.
|
inline |
Returns value
converted to a QJsonObject.
This method will convert QVariant's representing the QMetaType::QJsonObject
type, as expected, but it will also convert from a QMetaType::QVariantMap
using QJsonObject::fromVariantMap() as well.
value | QVariant to convert |