QPlaceReview Class

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 language () const
qreal rating () const
QString reviewId () const
void setDateTime (const QDateTime & dateTime )
void setLanguage (const QString & 語言 )
void setRating (qreal rating )
void setReviewId (const QString & identifier )
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 .

成員函數文檔編製

QPlaceReview:: QPlaceReview (const QPlaceContent & other )

構造副本為 other , otherwise constructs a default review object.

QPlaceReview:: QPlaceReview ()

Constructs a new review object.

[虛擬] QPlaceReview:: ~QPlaceReview ()

Destroys the review.

QDateTime QPlaceReview:: dateTime () const

Returns the date and time that the review was submitted.

另請參閱 setDateTime ().

QString QPlaceReview:: 語言 () const

Returns the language of the review. Typically this would be a language code in the 2 letter ISO 639-1 format.

另請參閱 setLanguage ().

qreal QPlaceReview:: rating () const

Returns this review's rating of the place.

另請參閱 setRating ().

QString QPlaceReview:: reviewId () const

Returns the review's identifier.

另請參閱 setReviewId ().

void QPlaceReview:: setDateTime (const QDateTime & dateTime )

Sets the date and time that the review was submitted to dateTime .

另請參閱 dateTime ().

void QPlaceReview:: setLanguage (const QString & 語言 )

設置 語言 of the review. Typically this would be a language code in the 2 letter ISO 639-1 format.

另請參閱 language ().

void QPlaceReview:: setRating ( qreal rating )

Sets the review's rating of the place.

另請參閱 rating ().

void QPlaceReview:: setReviewId (const QString & identifier )

設置 identifier of the review.

另請參閱 reviewId ().

void QPlaceReview:: setText (const QString & text )

設置 text of the review.

另請參閱 text ().

void QPlaceReview:: setTitle (const QString & title )

設置 title of the review.

另請參閱 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.

另請參閱 setText ().

QString QPlaceReview:: title () const

Returns the title of the review.

另請參閱 setTitle ().