QPlaceUser Class

The QPlaceUser class represents an individual user. 更多...

頭: #include <QPlaceUser>
qmake: QT += location
Since: Qt 5.6

該類在 Qt 5.6 引入。

公共函數

QPlaceUser (const QPlaceUser & other )
QPlaceUser ()
QPlaceUser & operator= (const QPlaceUser & other )
~QPlaceUser ()
QString name () const
void setName (const QString & name )
void setUserId (const QString & identifier )
QString userId () const
bool operator!= (const QPlaceUser & other ) const
bool operator== (const QPlaceUser & other ) const

詳細描述

成員函數文檔編製

QPlaceUser:: QPlaceUser (const QPlaceUser & other )

構造副本為 other .

QPlaceUser:: QPlaceUser ()

Constructs a new user object.

QPlaceUser &QPlaceUser:: operator= (const QPlaceUser & other )

賦值 other to this user and returns a reference to this user.

QPlaceUser:: ~QPlaceUser ()

Destroys the user object.

QString QPlaceUser:: name () const

Returns the name of the user.

另請參閱 setName ().

void QPlaceUser:: setName (const QString & name )

設置 name of the user.

另請參閱 name ().

void QPlaceUser:: setUserId (const QString & identifier )

設置 identifier of the user.

另請參閱 userId ().

QString QPlaceUser:: userId () const

Returns the identifier of the user.

另請參閱 setUserId ().

bool QPlaceUser:: operator!= (const QPlaceUser & other ) const

返迴 true 若 other is not equal to this user, otherwise returns false.

bool QPlaceUser:: operator== (const QPlaceUser & other ) const

Returns true if this user is equal to other 。否則返迴 false。