QPlaceUser Class

QPlaceUser 类代表单个用户。更多

Header: #include <QPlaceUser>
qmake: QT += location

属性

公共职能

QPlaceUser()
QPlaceUser(const 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 的副本。

[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。

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