<QPair>

用于构建成对对象的兼容性别名。更多...

Header: #include <QPair>

类型

(since 6.0) QPair

详细说明

类型文档

[alias, since 6.0] template <typename T1, typename T2> QPair

std::pair<T1, T2> 的别名,其中T1 和T2 分别是第一个和第二个元素的类型。

该 typedef 于 Qt 6.0 中引入。

© 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.