[Qt-interest] QHash vs python dictionary
Sean Harmer
sean.harmer at maps-technology.com
Tue May 25 14:23:12 CEST 2010
On Tuesday 25 May 2010 13:57:46 M. Bashir Al-Noimi wrote:
> > QVariantHash, QVariantMap are what you are looking for:
> >
> > http://doc.qt.nokia.com/4.7-snapshot/qvariant.html#QVariantHash-typedef
> > http://doc.qt.nokia.com/4.7-snapshot/qvariant.html#QVariantMap-typedef
>
> I guess this is wrong, QVariantHash and QVariantMap are type define from
> QHash and QMap they didn't fix dynamic dimension!
No, it is correct. You can then store another hash or any other data type in
the QVariant value component. So you can get a data structure of arbitrary
dimension this way.
I suggest that you just try it and then come back to the list with specific
questions if you cannot make it work.
Cheers,
Sean
More information about the Qt-interest-old
mailing list