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 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’s rating of the place.

See also

setRating()

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

str

Returns the review’s identifier.

See also

setReviewId()

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

dtPySide2.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’s 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()