QPlaceRatings Class
The QPlaceRatings class holds rating information about a place. More...
| Header: | #include <QPlaceRatings> |
| qmake: | QT += location |
| Since: | Qt 5.6 |
This class was introduced in Qt 5.6.
Detailed Description
Rating information is used to describe how good a place is conceived to be. Typically this information is visualized as a number of stars. The average() function returns an aggregated ratings value out of a possible maximum as given by the maximum() function.
qDebug() << QString("This place rated ") + place.ratings().average() + "out of " + place.ratings().maximum() + "stars";