[Interest] Storing QMaps in a QVariant
Alejandro Exojo
aexojo at modpow.es
Fri Jan 10 11:24:12 CET 2014
Hi.
In Qt 5.2 I see Q_DECLARE_ASSOCIATIVE_CONTAINER_METATYPE, where it
even clarifies that "all of the Qt associative containers already have
built-in support" and that if the key/value are already supported,
QVariant should store everything. However, I'm not getting a
QMap<quint8, quint16> inside a QVariant::fromValue.
I've tried to use the different macros provided, and even add a call
to qRegisterMetaType, just in case. I also tried a typedef. I think
I'm missing something obvious, but I don't see what. Here is what I
got:
http://pastie.org/8620095
Thank you.
--
Alejandro Exojo Piqueras
ModpoW, S.L.
Technova LaSalle | Sant Joan de la Salle 42 | 08022 Barcelona | www.modpow.es
More information about the Interest
mailing list