QPlaceReview¶
The
QPlaceReview
class represents a review of a place. More…
Synopsis¶
Functions¶
def
dateTime
()def
language
()def
rating
()def
reviewId
()def
setDateTime
(dt)def
setLanguage
(data)def
setRating
(data)def
setReviewId
(identifier)def
setText
(text)def
setTitle
(data)def
text
()def
title
()
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 fromQPlaceContent
.Note: The Places API only supports reviews as ‘retrieve-only’ objects. Submitting reviews to a provider is not a supported use case.
See also
- class PySide2.QtLocation.QPlaceReview¶
PySide2.QtLocation.QPlaceReview(other)
- param other:
Constructs a new review object.
Constructs a copy of
other
, otherwise constructs a default review object.
- PySide2.QtLocation.QPlaceReview.dateTime()¶
- Return type:
Returns the date and time that the review was submitted.
See also
- 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
- PySide2.QtLocation.QPlaceReview.rating()¶
- Return type:
float
Returns this review’s rating of the place.
See also
- PySide2.QtLocation.QPlaceReview.reviewId()¶
- Return type:
str
Returns the review’s identifier.
See also
- PySide2.QtLocation.QPlaceReview.setDateTime(dt)¶
- Parameters:
Sets the date and time that the review was submitted to
dateTime
.See also
- 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
- PySide2.QtLocation.QPlaceReview.setRating(data)¶
- Parameters:
data – float
Sets the review’s
rating
of the place.See also
- PySide2.QtLocation.QPlaceReview.setReviewId(identifier)¶
- Parameters:
identifier – str
Sets the
identifier
of the review.See also
- PySide2.QtLocation.QPlaceReview.setText(text)¶
- Parameters:
text – str
Sets
text
of the review.See also
- PySide2.QtLocation.QPlaceReview.setTitle(data)¶
- Parameters:
data – str
Sets the
title
of the review.See also
- 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
- PySide2.QtLocation.QPlaceReview.title()¶
- Return type:
str
Returns the title of the review.
See also
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.