[Development] [Qt-interest] QMultiHash
pengliang at founder.com
Thu Mar 7 10:24:45 CET 2013
I need to find some key and change their values.
I found If I use QmutableHashIterator<Qstring,int>it , its
findNext ( const T & value )
Its parameter is a value, not a key.
So I need to :
If(it.key() == ikey)
I must to check every item? Who have a better method?
Some books said Qhash is unorderred?
But I test it.
I insert some string, and loop the hash by QhashIterator, I found the string is orderred.
And I test it Qhash<int,Qstring>, and print key, and found they still orderred.
Why books said it is unorderred?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Development