How to convert QMap <QString, QMap <QString, int >> to QVariant?
QVariant(required for the class QSettings) supports creating fromQMap<QString, QVariant>
But trying to initialize something like this:
QMap<QString, QVariant(QMap<QString, QVariant>)> i;
Gives an error:
returns a function.
So, I tried overloading QMap<QString, QVariant>for QVariant()and got
error: there is no corresponding function to call
QVariant::QVariant(QMap<QString, QMap<QString, int> >&)
Now I tried the type:
QMap<QString, (QVariant)QMap<QString, QVariant> > i;
and received
template argument 2 invalid
invalid type in declaration before;token
So what does voodoo need to convert a nested object QMapto an object QVariant?
+3
2 answers