QPlaceReview

The QPlaceReview class represents a review of a place. More

Inheritance diagram of PySide2.QtLocation.QPlaceReview

Synopsis

Functions

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.

class QPlaceReview

QPlaceReview(other)

param other

QPlaceContent

Constructs a new review object.

Constructs a copy of other , otherwise constructs a default review object.

PySide2.QtLocation.QPlaceReview.dateTime()
Return type

QDateTime

Returns the date and time that the review was submitted.

See also

setDateTime()

PySide2.QtLocation.QPlaceReview.language()
Return type

unicode

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

See also

setLanguage()

PySide2.QtLocation.QPlaceReview.rating()
Return type

qreal

Returns this review’s rating of the place.

See also

setRating()

PySide2.QtLocation.QPlaceReview.reviewId()
Return type

unicode

Returns the review’s identifier.

See also

setReviewId()

PySide2.QtLocation.QPlaceReview.setDateTime(dt)
Parameters

dtQDateTime

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

See also

dateTime()

PySide2.QtLocation.QPlaceReview.setLanguage(data)
Parameters

data – unicode

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

See also

language()

PySide2.QtLocation.QPlaceReview.setRating(data)
Parameters

dataqreal

Sets the review’s rating of the place.

See also

rating()

PySide2.QtLocation.QPlaceReview.setReviewId(identifier)
Parameters

identifier – unicode

Sets the identifier of the review.

See also

reviewId()

PySide2.QtLocation.QPlaceReview.setText(text)
Parameters

text – unicode

Sets text of the review.

See also

text()

PySide2.QtLocation.QPlaceReview.setTitle(data)
Parameters

data – unicode

Sets the title of the review.

See also

title()

PySide2.QtLocation.QPlaceReview.text()
Return type

unicode

Returns a textual description of the place.

Depending on the provider the text could be rich (HTML based) or plain text.

See also

setText()

PySide2.QtLocation.QPlaceReview.title()
Return type

unicode

Returns the title of the review.

See also

setTitle()