[Qt-interest] QHash vs python dictionary
M. Bashir Al-Noimi
mbnoimi at gmx.com
Tue May 25 14:57:46 CEST 2010
Hi
On 25/05/2010 11:05 ص, Sean Harmer wrote:
> On Tuesday 25 May 2010 10:59:46 M. Bashir Al-Noimi wrote:
>
>> Hi All,
>>
>> Currently I'm learning python for web developing. During my study I
>> leaned about python dictionary
>> <http://en.wikibooks.org/wiki/Python_Programming/Dictionaries> which is
>> very flexible data structure where C++ missed it, but I found that QHash
>> (and QMap) class is similar to it, is it true?
>>
>>
>> On another side, python dictionary defines dynamic dimension (infinite
>> child dictionaries or lists) of data where QHash can't (it's C++
>> template) so I'm wondering is there any Qt class can deal with dynamic
>> dimension of dictionary?
>>
> 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!
--
Best Regards
Muhammad Bashir Al-Noimi
My Blog: http://mbnoimi.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100525/7bbf1a4e/attachment.html
More information about the Qt-interest-old
mailing list