alexeyGL
4th July 2013, 11:57
Hello!
I've tried to convert QMap<QString, QVariantList> to QVariant, but I obtained compillation error:
error: conversion from QMap<QString, QVariantList> to non-scalar type 'QVariant' requested
By the way, QMap<QString, QVariant> converts to QVariant fine.
I've looked Qt documentation about QVariant, but didn't find anything about it.
Possibly, the reason is that one container have another one into it.
Could you explain this situation, please?
Added after 29 minutes:
Oh, sorry. Of course such type QMap<QString, QVariantList> is not listed in enum QVariant::Type (Only QMap<QString, QVariant>).
But in Qt5 this enum is obsolete.
Do anyone know, is it works in Qt5? (Unfortunatelly, I could not try it now.)
I've tried to convert QMap<QString, QVariantList> to QVariant, but I obtained compillation error:
error: conversion from QMap<QString, QVariantList> to non-scalar type 'QVariant' requested
By the way, QMap<QString, QVariant> converts to QVariant fine.
I've looked Qt documentation about QVariant, but didn't find anything about it.
Possibly, the reason is that one container have another one into it.
Could you explain this situation, please?
Added after 29 minutes:
Oh, sorry. Of course such type QMap<QString, QVariantList> is not listed in enum QVariant::Type (Only QMap<QString, QVariant>).
But in Qt5 this enum is obsolete.
Do anyone know, is it works in Qt5? (Unfortunatelly, I could not try it now.)