I'm working with Qt and JSON. Now, I have two options: QVariant
and QJsonValue
. I don't get the point in which they are different?
I know QVariant has some more methods and QJsonValue
has the is*** methods(where QVariant
has type).
But is there any other main difference (maybe speed)? If no: Why are there two classes which can do nearly the same?
QVariant give you more flexibility in manipulating data.