[Qt-interest] QHash vs python dictionary

Alexandre Beraud aberaud at infflux.com
Tue May 25 14:30:28 CEST 2010


Hi,

You can make a tree of QVariantHash(es) since you can create a QVariant 
from a QVariantHash. However I guess it will be more painful to use this 
that a python dictionary (or a Perl hash) because, whenever you want to 
read or write, you'll have to use QVariant::toHash() in order to 
transform each node of the tree into a QVariantHash.

Regards,

Alex


M. Bashir Al-Noimi a écrit :
> Hi
>
> I can't expand QVariantHash by width at runtime because it's a C++ 
> templatewhere in python I can expand the dictionary in two dimensions 
> during insert process without any problem (just like making a tree).
>
> -- 
> Best Regards
> Muhammad Bashir Al-Noimi
> My Blog: http://mbnoimi.net
>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>   


-- 
Alexandre BERAUD
Ingénieur Développement

Infflux - Informatique & Flux
Tel: 01 49 57 92 00 - Fax : 01 49 57 92 01
Mail: aberaud at infflux.com
Visitez notre site :  www.infflux.com




More information about the Qt-interest-old mailing list