以下成員源於類 QHash 已過時。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。
(obsolete)
QHash::iterator
|
insertMulti (const Key & key , const T & value ) |
(obsolete)
QList<Key>
|
uniqueKeys () const |
(obsolete)
QHash<K, V> &
|
unite (const QHash<K, V> & other ) |
(obsolete)
QList<T>
|
values (const Key & key ) const |
此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。
插入新項具有 key 和值 value .
If there is already an item with the same key in the hash, this function will simply create a new one. (This behavior is different from insert (), which overwrites the value of an existing item.)
This function is obsolete. Use QMultiHash or QMultiMap 代替。
此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。
使用 QMultiHash for storing multiple values with the same key.
Returns a list containing all the keys in the map. Keys that occur multiple times in the map (because items were inserted with insertMulti (),或 unite () was used) occur only once in the returned list.
該函數在 Qt 4.2 引入。
另請參閱 QMultiHash::uniqueKeys ().
此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。
Inserts all the items in the other hash into this hash. If a key is common to both hashes, the resulting hash will contain the key multiple times.
此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。
這是重載函數。
使用 QMultiHash for storing multiple values with the same key.
Returns a list of all the values associated with the key , from the most recently inserted to the least recently inserted.
另請參閱 count () 和 insertMulti ().