QPlaceUser Class
QPlaceUser 类表示单个用户。更多内容...
| Header: | #include <QPlaceUser> |
| qmake: | QT += location |
属性
公开活动
| QPlaceUser() | |
| QPlaceUser(const QPlaceUser &other) | |
| QPlaceUser(QPlaceUser &&other) | |
| ~QPlaceUser() | |
| QString | name() const |
| void | setName(const QString &name) |
| void | setUserId(const QString &identifier) |
| QString | userId() const |
| QPlaceUser & | operator=(const QPlaceUser &other) |
相关非成员
| bool | operator!=(const QPlaceUser &lhs, const QPlaceUser &rhs) |
| bool | operator==(const QPlaceUser &lhs, const QPlaceUser &rhs) |
属性文档
name : QString
该属性存储用户的姓名。
访问函数:
| QString | name() const |
| void | setName(const QString &name) |
userId : QString
该属性存储用户的标识符。
访问函数:
| QString | userId() const |
| void | setUserId(const QString &identifier) |
成员函数文档
QPlaceUser::QPlaceUser()
创建一个新的用户对象。
[noexcept] QPlaceUser::QPlaceUser(const QPlaceUser &other)
创建other 的副本。
[constexpr noexcept default] QPlaceUser::QPlaceUser(QPlaceUser &&other)
通过Move构造一个QPlaceUser 的实例。
[noexcept] QPlaceUser::~QPlaceUser()
销毁用户对象。
[noexcept] QPlaceUser &QPlaceUser::operator=(const QPlaceUser &other)
将other 分配给该用户,并返回该用户的引用。
相关非成员
[noexcept] bool operator!=(const QPlaceUser &lhs, const QPlaceUser &rhs)
如果 `lhs ` 与 `rhs` 不相等,则返回 true;否则返回 false。
[noexcept] bool operator==(const QPlaceUser &lhs, const QPlaceUser &rhs)
如果lhs 等于rhs ,则返回true;否则返回false。
© 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.