Hello!
I've tried to convert QMap<QString, QVariantList> to QVariant, but I obtained compillation error:
Qt Code:
error: conversion from QMap<QString, QVariantList> to non-scalar type 'QVariant' requestedTo copy to clipboard, switch view to plain text mode
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.)
Bookmarks