Obsolete Members for QMultiMap

QMultiMap 类的以下成员已被废弃。提供这些成员是为了确保旧源代码能够正常运行。我们强烈建议在新代码中不要使用它们。

公共函数

(deprecated in 6.0) void insert(const QMultiMap<Key, T> &map)
(deprecated in 6.0) void insert(QMultiMap<Key, T> &&map)
(deprecated in 6.0) QMultiMap<Key, T>::iterator insertMulti(const Key &key, const T &value)
(deprecated in 6.0) QMultiMap<Key, T>::iterator insertMulti(QMultiMap<Key, T>::const_iterator pos, const Key &key, const T &value)
(deprecated in 6.0) std::multimap<Key, T> toStdMap() const

成员函数文档

[deprecated in 6.0] void QMultiMap::insert(const QMultiMap<Key, T> &map)

自 6.0 版起,此函数已弃用。我们强烈建议不要在新代码中使用它。

请改用 `unite()`。

将map 中的所有项目插入到此映射中。

[deprecated in 6.0] void QMultiMap::insert(QMultiMap<Key, T> &&map)

自 6.0 版本起,此函数已被废弃。我们强烈建议不要在新代码中使用它。

请改用unite()。

将map 中的所有项移动到此映射中。

如果 `map ` 是共享的,则会复制这些项。

这是一个重载函数。

[deprecated in 6.0] QMultiMap<Key, T>::iterator QMultiMap::insertMulti(const Key &key, const T &value)

自 6.0 版本起,此函数已弃用。我们强烈建议不要在新代码中使用它。

请改用insert()。

插入一个新项,其键为key ,值为value ,并返回一个指向该新项的迭代器。

[deprecated in 6.0] QMultiMap<Key, T>::iterator QMultiMap::insertMulti(QMultiMap<Key, T>::const_iterator pos, const Key &key, const T &value)

自 6.0 起,该函数已被废弃。我们强烈建议不要在新代码中使用它。

请改用 `insert()`。

插入一个新项,其键为key ,值为value ,并带有提示pos ,用于指定插入位置。

这是一个重载函数。

[deprecated in 6.0] std::multimap<Key, T> QMultiMap::toStdMap() const

自 6.0 版本起,该函数已被废弃。我们强烈建议不要在新代码中使用它。

请改用 `toStdMultiMap()`。

返回一个与该QMultiMap 等效的STL多映射。

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.