The QPlaceReview class represents a review of a place. 更多...
头: | #include <QPlaceReview> |
qmake: | QT += location |
Since: | Qt 5.6 |
继承: | QPlaceContent |
该类在 Qt 5.6 引入。
QPlaceReview (const QPlaceContent & other ) | |
QPlaceReview () | |
virtual | ~QPlaceReview () |
QDateTime | dateTime () const |
QString | 语言 () const |
qreal | rating () const |
QString | reviewId () const |
void | setDateTime (const QDateTime & dateTime ) |
void | setLanguage (const QString & 语言 ) |
void | setRating (qreal rating ) |
void | setReviewId (const QString & 标识符 ) |
void | setText (const QString & text ) |
void | setTitle (const QString & title ) |
QString | text () const |
QString | title () const |
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.
另请参阅 QPlaceContent and QPlaceEditorial .
构造副本为 other , otherwise constructs a default review object.
Constructs a new review object.
[虚拟]
QPlaceReview::
~QPlaceReview
()
Destroys the review.
Returns the date and time that the review was submitted.
另请参阅 setDateTime ().
Returns the language of the review. Typically this would be a language code in the 2 letter ISO 639-1 format.
另请参阅 setLanguage ().
Returns this review's rating of the place.
另请参阅 setRating ().
Returns the review's identifier.
另请参阅 setReviewId ().
Sets the date and time that the review was submitted to dateTime .
另请参阅 dateTime ().
设置 语言 of the review. Typically this would be a language code in the 2 letter ISO 639-1 format.
另请参阅 语言 ().
Sets the review's rating of the place.
另请参阅 rating ().
设置 标识符 of the review.
另请参阅 reviewId ().
设置 text of the review.
另请参阅 text ().
设置 title of the review.
另请参阅 title ().
Returns a textual description of the place.
Depending on the provider the text could be rich (HTML based) or plain text.
另请参阅 setText ().
Returns the title of the review.
另请参阅 setTitle ().