内容表

上一话题

QPlaceResult

下一话题

QPlaceSearchReply

QPlaceReview

QPlaceReview class represents a review of a place. 更多

Inheritance diagram of PySide2.QtLocation.QPlaceReview

概要

函数

详细描述

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.

构造副本为 other , otherwise constructs a default review object.

PySide2.QtLocation.QPlaceReview. dateTime ( )
返回类型

QDateTime

Returns the date and time that the review was submitted.

另请参阅

setDateTime()

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.

另请参阅

setLanguage()

PySide2.QtLocation.QPlaceReview. rating ( )
返回类型

qreal

Returns this review’s rating of the place.

另请参阅

setRating()

PySide2.QtLocation.QPlaceReview. reviewId ( )
返回类型

unicode

Returns the review’s identifier.

另请参阅

setReviewId()

PySide2.QtLocation.QPlaceReview. setDateTime ( dt )
参数

dt QDateTime

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

另请参阅

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.

另请参阅

language()

PySide2.QtLocation.QPlaceReview. setRating ( data )
参数

data qreal

Sets the review’s rating of the place.

另请参阅

rating()

PySide2.QtLocation.QPlaceReview. setReviewId ( identifier )
参数

identifier – unicode

设置 identifier of the review.

另请参阅

reviewId()

PySide2.QtLocation.QPlaceReview. setText ( text )
参数

text – unicode

text of the review.

另请参阅

text()

PySide2.QtLocation.QPlaceReview. setTitle ( data )
参数

data – unicode

设置 title of the review.

另请参阅

title()

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.

另请参阅

setText()

PySide2.QtLocation.QPlaceReview. title ( )
返回类型

unicode

Returns the title of the review.

另请参阅

setTitle()