QPlaceRatings Class
QPlaceRatingsクラスは、場所の評価情報を保持します。詳細...
Header: | #include <QPlaceRatings> |
qmake: | QT += location |
プロパティ
パブリック機能
QPlaceRatings() | |
QPlaceRatings(const QPlaceRatings &other) | |
~QPlaceRatings() | |
qreal | average() const |
int | count() const |
bool | isEmpty() const |
qreal | maximum() const |
void | setAverage(qreal average) |
void | setCount(int count) |
void | setMaximum(qreal max) |
QPlaceRatings & | operator=(const QPlaceRatings &other) |
関連非会員
bool | operator!=(const QPlaceRatings &lhs, const QPlaceRatings &rhs) |
bool | operator==(const QPlaceRatings &lhs, const QPlaceRatings &rhs) |
詳細説明
評価情報は、その場所がどの程度良い場所であるかを表現するために使用されます。通常、この情報は星の数として可視化されます。average() 関数は、maximum() 関数によって与えられる可能な最大値のうち、集約された評価値を返す。
プロパティのドキュメント
average : qreal
このプロパティは、個々の評価の平均値を保持する。
アクセス関数:
qreal | average() const |
void | setAverage(qreal average) |
count : int
このプロパティは、個々の評価の総数を保持する。
アクセス関数です:
int | count() const |
void | setCount(int count) |
maximum : qreal
このプロパティは、可能な最大評価値を保持する。
アクセス関数
qreal | maximum() const |
void | setMaximum(qreal max) |
メンバー関数ドキュメント
QPlaceRatings::QPlaceRatings()
新しい視聴率オブジェクトを作成します。
[noexcept]
QPlaceRatings::QPlaceRatings(const QPlaceRatings &other)
other のコピーを作成する。
[noexcept]
QPlaceRatings::~QPlaceRatings()
視聴率オブジェクトを破棄する。
bool QPlaceRatings::isEmpty() const
場所のレーティングのすべてのフィールドが0の場合はtrueを返し、それ以外の場合はfalseを返す。
[noexcept]
QPlaceRatings &QPlaceRatings::operator=(const QPlaceRatings &other)
このレーティング・オブジェクトにother を割り当て、このレーティング・オブジェクトへの参照を返します。
関連する非会員
[noexcept]
bool operator!=(const QPlaceRatings &lhs, const QPlaceRatings &rhs)
lhs がrhs と等しくなければ真を返し、そうでなければ偽を返す。
[noexcept]
bool operator==(const QPlaceRatings &lhs, const QPlaceRatings &rhs)
lhs がrhs と等しければ真を返し、そうでなければ偽を返す。
© 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.