QPlaceRatings Class
QPlaceRatings 클래스는 장소에 대한 평점 정보를 담고 있습니다. 더 보기...
| Header: | #include <QPlaceRatings> |
| qmake: | QT += location |
속성
공개 기능
| QPlaceRatings() | |
| QPlaceRatings(const QPlaceRatings &other) | |
| QPlaceRatings(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 의 복사본을 생성합니다.
[constexpr noexcept default] QPlaceRatings::QPlaceRatings(QPlaceRatings &&other)
QPlaceRatings 의 인스턴스를 생성합니다.
[noexcept] QPlaceRatings::~QPlaceRatings()
ratings 객체를 삭제합니다.
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 와 같지 않으면 true를 반환하고, 그렇지 않으면 false를 반환합니다.
[noexcept] bool operator==(const QPlaceRatings &lhs, const QPlaceRatings &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.