QPlaceRatings Class
A classe QPlaceRatings contém informações sobre as avaliações de um local. Mais...
| Header: | #include <QPlaceRatings> |
| qmake: | QT += location |
Propriedades
Funções públicas
| 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) |
Não-membros relacionados
| bool | operator!=(const QPlaceRatings &lhs, const QPlaceRatings &rhs) |
| bool | operator==(const QPlaceRatings &lhs, const QPlaceRatings &rhs) |
Descrição detalhada
As informações de classificação são usadas para descrever o quão bom um local é considerado. Normalmente, essas informações são representadas por um número de estrelas. A função ` average()` retorna um valor agregado de classificação em relação a um máximo possível, conforme determinado pela função ` maximum()`.
Documentação da propriedade
average : qreal
Esta propriedade contém o valor médio das avaliações individuais.
Funções de acesso:
| qreal | average() const |
| void | setAverage(qreal average) |
count : int
Esta propriedade contém o número total de avaliações individuais.
Funções de acesso:
| int | count() const |
| void | setCount(int count) |
maximum : qreal
Essa propriedade contém o valor máximo possível da classificação.
Funções de acesso:
| qreal | maximum() const |
| void | setMaximum(qreal max) |
Documentação das funções de membro
QPlaceRatings::QPlaceRatings()
Cria um novo objeto de classificações.
[noexcept] QPlaceRatings::QPlaceRatings(const QPlaceRatings &other)
Cria uma cópia de other.
[constexpr noexcept default] QPlaceRatings::QPlaceRatings(QPlaceRatings &&other)
Move cria uma instância de ` QPlaceRatings`.
[noexcept] QPlaceRatings::~QPlaceRatings()
Destrói o objeto de classificações.
bool QPlaceRatings::isEmpty() const
Retorna “true” se todos os campos das avaliações do local forem 0; caso contrário, retorna “false”.
[noexcept] QPlaceRatings &QPlaceRatings::operator=(const QPlaceRatings &other)
Atribui ` other ` a este objeto de classificações e retorna uma referência a ele.
Não-membros relacionados
[noexcept] bool operator!=(const QPlaceRatings &lhs, const QPlaceRatings &rhs)
Retorna `true` se ` lhs ` não for igual a ` rhs`; caso contrário, retorna `false`.
[noexcept] bool operator==(const QPlaceRatings &lhs, const QPlaceRatings &rhs)
Retorna `true` se ` lhs ` for igual a ` rhs`; caso contrário, retorna `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.