QPlaceRatings Class
La clase QPlaceRatings contiene información sobre la valoración de un lugar. Más...
| Header: | #include <QPlaceRatings> |
| qmake: | QT += location |
Propiedades
Funciones públicas
| 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) |
Relacionados No Miembros
| bool | operator!=(const QPlaceRatings &lhs, const QPlaceRatings &rhs) |
| bool | operator==(const QPlaceRatings &lhs, const QPlaceRatings &rhs) |
Descripción detallada
La información de calificación se utiliza para describir lo bueno que se considera un lugar. Normalmente, esta información se visualiza como un número de estrellas. La función average() devuelve un valor de calificación agregado de un máximo posible dado por la función maximum().
Documentación de propiedades
average : qreal
Esta propiedad contiene el valor medio de las valoraciones individuales.
Funciones de acceso:
| qreal | average() const |
| void | setAverage(qreal average) |
count : int
Esta propiedad contiene el número total de valoraciones individuales.
Funciones de acceso:
| int | count() const |
| void | setCount(int count) |
maximum : qreal
Esta propiedad contiene el valor de calificación máximo posible.
Funciones de acceso:
| qreal | maximum() const |
| void | setMaximum(qreal max) |
Documentación de funciones miembro
QPlaceRatings::QPlaceRatings()
Crea un nuevo objeto de calificación.
[noexcept] QPlaceRatings::QPlaceRatings(const QPlaceRatings &other)
Construye una copia de other.
[noexcept] QPlaceRatings::~QPlaceRatings()
Destruye el objeto de calificación.
bool QPlaceRatings::isEmpty() const
Devuelve true si todos los campos de la clasificación de lugar son 0; en caso contrario devuelve false.
[noexcept] QPlaceRatings &QPlaceRatings::operator=(const QPlaceRatings &other)
Asigna other a este objeto de calificación y devuelve una referencia a este objeto de calificación.
No miembros relacionados
[noexcept] bool operator!=(const QPlaceRatings &lhs, const QPlaceRatings &rhs)
Devuelve true si lhs no es igual a rhs, en caso contrario devuelve false.
[noexcept] bool operator==(const QPlaceRatings &lhs, const QPlaceRatings &rhs)
Devuelve true si lhs es igual a rhs, en caso contrario devuelve 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.