VoltAir
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Groups Pages
Public Member Functions | List of all members
VariantConverter< QJsonObject > Class Template Reference

Helper template class to convert QVariants to and from QJsonObjects. More...

Inheritance diagram for VariantConverter< QJsonObject >:
VariantConverterBase< QJsonObject >

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...
 

Detailed Description

template<>
class VariantConverter< QJsonObject >

Helper template class to convert QVariants to and from QJsonObjects.

See also
VariantConverter

Member Function Documentation

QJsonObject VariantConverter< QJsonObject >::fromVariant ( const QVariant value)
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.

Parameters
valueQVariant to convert