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 鈥榬etrieve-only鈥� objects. Submitting reviews to a provider is not a supported use case.

class PySide2.QtLocation.QPlaceReview露

PySide2.QtLocation.QPlaceReview(other)

param other:

PySide2.QtLocation.QPlaceContent

Constructs a new review object.

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

PySide2.QtLocation.QPlaceReview.dateTime()露
Return type:

PySide2.QtCore.QDateTime

Returns the date and time that the review was submitted.

See also

setDateTime()

PySide2.QtLocation.QPlaceReview.language()露
Return type:

str

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:

float

Returns this review鈥檚 rating of the place.

See also

setRating()

PySide2.QtLocation.QPlaceReview.reviewId()露
Return type:

str

Returns the review鈥檚 identifier.

See also

setReviewId()

PySide2.QtLocation.QPlaceReview.setDateTime(dt)露
Parameters:

dt 鈥� PySide2.QtCore.QDateTime

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

See also

dateTime()

PySide2.QtLocation.QPlaceReview.setLanguage(data)露
Parameters:

data 鈥� str

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:

data 鈥� float

Sets the review鈥檚 rating of the place.

See also

rating()

PySide2.QtLocation.QPlaceReview.setReviewId(identifier)露
Parameters:

identifier 鈥� str

Sets the identifier of the review.

See also

reviewId()

PySide2.QtLocation.QPlaceReview.setText(text)露
Parameters:

text 鈥� str

Sets text of the review.

See also

text()

PySide2.QtLocation.QPlaceReview.setTitle(data)露
Parameters:

data 鈥� str

Sets the title of the review.

See also

title()

PySide2.QtLocation.QPlaceReview.text()露
Return type:

str

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:

str

Returns the title of the review.

See also

setTitle()