QPlaceReviewclass represents a review of a place. 更多 …
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
()
每
QPlaceReviewhas 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.
QPlaceReview
¶
QPlaceReview(other)
- param other
Constructs a new review object.
构造副本为
other
, otherwise constructs a default review object.
PySide2.QtLocation.QPlaceReview.
dateTime
(
)
¶
QDateTime
Returns the date and time that the review was submitted.
另请参阅
PySide2.QtLocation.QPlaceReview.
language
(
)
¶
unicode
Returns the language of the review. Typically this would be a language code in the 2 letter ISO 639-1 format.
另请参阅
PySide2.QtLocation.QPlaceReview.
rating
(
)
¶
qreal
Returns this review’s rating of the place.
另请参阅
PySide2.QtLocation.QPlaceReview.
reviewId
(
)
¶
unicode
Returns the review’s identifier.
另请参阅
PySide2.QtLocation.QPlaceReview.
setDateTime
(
dt
)
¶
dt
–
QDateTime
Sets the date and time that the review was submitted to
dateTime
.
另请参阅
PySide2.QtLocation.QPlaceReview.
setLanguage
(
data
)
¶
data – unicode
设置
language
of the review. Typically this would be a language code in the 2 letter ISO 639-1 format.
另请参阅
PySide2.QtLocation.QPlaceReview.
setRating
(
data
)
¶
data
–
qreal
Sets the review’s
rating
of the place.
另请参阅
PySide2.QtLocation.QPlaceReview.
setReviewId
(
identifier
)
¶
identifier – unicode
设置
identifier
of the review.
另请参阅
PySide2.QtLocation.QPlaceReview.
setText
(
text
)
¶
text – unicode
集
text
of the review.
另请参阅
PySide2.QtLocation.QPlaceReview.
setTitle
(
data
)
¶
data – unicode
设置
title
of the review.
另请参阅
PySide2.QtLocation.QPlaceReview.
text
(
)
¶
unicode
Returns a textual description of the place.
Depending on the provider the text could be rich (HTML based) or plain text.
另请参阅
PySide2.QtLocation.QPlaceReview.
title
(
)
¶
unicode
Returns the title of the review.
另请参阅