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이면 참을 반환하고, 그렇지 않으면 거짓을 반환합니다.
[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.