QPlaceRatings Class
Die Klasse QPlaceRatings enthält Bewertungsinformationen über einen Ort. Mehr...
Header: | #include <QPlaceRatings> |
qmake: | QT += location |
Eigenschaften
Öffentliche Funktionen
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) |
Verwandte Nicht-Mitglieder
bool | operator!=(const QPlaceRatings &lhs, const QPlaceRatings &rhs) |
bool | operator==(const QPlaceRatings &lhs, const QPlaceRatings &rhs) |
Detaillierte Beschreibung
Bewertungsinformationen werden verwendet, um zu beschreiben, wie gut ein Ort sein soll. Normalerweise wird diese Information als Anzahl von Sternen dargestellt. Die Funktion average() gibt einen aggregierten Bewertungswert aus einem möglichen Maximum zurück, das von der Funktion maximum() vorgegeben wird.
Dokumentation der Eigenschaft
average : qreal
Diese Eigenschaft enthält den Durchschnittswert der einzelnen Bewertungen.
Zugriffsfunktionen:
qreal | average() const |
void | setAverage(qreal average) |
count : int
Diese Eigenschaft enthält die Gesamtzahl der einzelnen Bewertungen.
Zugriffsfunktionen:
int | count() const |
void | setCount(int count) |
maximum : qreal
Diese Eigenschaft enthält den maximal möglichen Bewertungswert.
Zugriffsfunktionen:
qreal | maximum() const |
void | setMaximum(qreal max) |
Dokumentation der Mitgliedsfunktionen
QPlaceRatings::QPlaceRatings()
Konstruiert ein neues Bewertungsobjekt.
[noexcept]
QPlaceRatings::QPlaceRatings(const QPlaceRatings &other)
Konstruiert eine Kopie von other.
[noexcept]
QPlaceRatings::~QPlaceRatings()
Zerstört das Bewertungsobjekt.
bool QPlaceRatings::isEmpty() const
Gibt true zurück, wenn alle Felder der Ortsbewertungen 0 sind; andernfalls wird false zurückgegeben.
[noexcept]
QPlaceRatings &QPlaceRatings::operator=(const QPlaceRatings &other)
Weist other diesem Rating-Objekt zu und gibt einen Verweis auf dieses Rating-Objekt zurück.
Verwandte Nicht-Mitglieder
[noexcept]
bool operator!=(const QPlaceRatings &lhs, const QPlaceRatings &rhs)
Gibt true zurück, wenn lhs nicht gleich rhs ist, andernfalls wird false zurückgegeben.
[noexcept]
bool operator==(const QPlaceRatings &lhs, const QPlaceRatings &rhs)
Gibt true zurück, wenn lhs gleich rhs ist, andernfalls wird false zurückgegeben.
© 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.