QPlaceReview Class▲
-
Header: QPlaceReview
-
Since: Qt 5.6
-
qmake: QT += location
-
Inherits: QPlaceContent
-
Group: QPlaceReview is part of QtLocation-places, QtLocation-places-data
Detailed Description▲
Each QPlaceReview has a number of properties such as a title, text, date of submission and rating; in addition to those properties inherited from QPlaceContent.
Note: The Places API only supports reviews as 'retrieve-only' objects. Submitting reviews to a provider is not a supported use case.
See Also▲
See also QPlaceContent, QPlaceEditorial
Member Function Documentation▲
QPlaceReview::QPlaceReview()▲
Constructs a new review object.
QPlaceReview::QPlaceReview(const QPlaceContent &other)▲
Constructs a copy of other, otherwise constructs a default review object.
[virtual] QPlaceReview::~QPlaceReview()▲
Destroys the review.
QDateTime QPlaceReview::dateTime() const▲
QString QPlaceReview::language() const▲
Returns the language of the review. Typically this would be a language code in the 2 letter ISO 639-1 format.
See Also▲
See also setLanguage()
qreal QPlaceReview::rating() const▲
QString QPlaceReview::reviewId() const▲
void QPlaceReview::setDateTime(const QDateTime &dateTime)▲
void QPlaceReview::setLanguage(const QString &language)▲
Sets the language of the review. Typically this would be a language code in the 2 letter ISO 639-1 format.
See Also▲
See also language()
void QPlaceReview::setRating(qreal rating)▲
void QPlaceReview::setReviewId(const QString &identifier)▲
void QPlaceReview::setText(const QString &text)▲
void QPlaceReview::setTitle(const QString &title)▲
QString QPlaceReview::text() const▲
Returns a textual description of the place.
Depending on the provider the text could be rich (HTML based) or plain text.
See Also▲
See also setText()