Apparently QVariant (needed for QSettings class) supports creation from QMap<QString, QVariant>
But trying to initialise something like this:
QMap<QString, QVariant(QMap<QString, QVariant>)> i;
Returns
instantiated from here. <-- points to code above.
function returning a function.
So then i tried the QMap<QString, QVariant>
overload for QVariant() and got
error: no matching function for call to 'QVariant::QVariant(QMap<QString, QMap<QString, int> >&)'
Now i tried a typecast QMap<QString, (QVariant)QMap<QString, QVariant> > i;
and got template argument 2 is invalid
and invalid type in declaration before ';' token
So whats the required voodoo to convert nested QMaps to a QVariant object?